Skip to content

Commit

Permalink
fix content disposition response header (#38) (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos authored Dec 7, 2023
1 parent 468b777 commit 7c10ca8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ CHANGELOG
- Update Docker image to ubuntu 22.04 base
- Use directly libreoffice instead of deprecated unoconv
- Move CI to github-action
- Fix typo in attachment response Content-Disposition (#38)


2.2.5 (2021-01-13)
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Example, convert from *odt* to *pdf* :

curl http://convertit/?url=http://server/document.odt&to=application/pdf
HTTP/1.1 302 Found
Content-Disposition: attachement; filename=document.pdf
Content-Disposition: attachment; filename=document.pdf
...

GET parameters:
Expand All @@ -57,7 +57,7 @@ Upload data in POST parameter named ``file``:

curl -F "[email protected]" http://convertit/?to=image/png
HTTP/1.1 302 Found
Content-Disposition: attachement; filename=tiger.png
Content-Disposition: attachment; filename=tiger.png



Expand Down
2 changes: 1 addition & 1 deletion convertit/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,5 @@ def home_view(request, input_filepath, output_basename_generator):
content_type='text/plain')

return HTTPFound(static_url(output_filepath, request),
content_disposition='attachement; filename=%s' %
content_disposition='attachment; filename=%s' %
output_basename)

0 comments on commit 7c10ca8

Please sign in to comment.