Skip to content

Commit

Permalink
Fix typo in Content-Disposition header
Browse files Browse the repository at this point in the history
  • Loading branch information
Unrud authored Apr 22, 2023
1 parent 6ae831a commit d7ce2f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions radicale/app/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def propose_filename(collection: storage.BaseCollection) -> str:

class ApplicationPartGet(ApplicationBase):

def _content_disposition_attachement(self, filename: str) -> str:
value = "attachement"
def _content_disposition_attachment(self, filename: str) -> str:
value = "attachment"
try:
encoded_filename = quote(filename, encoding=self._encoding)
except UnicodeEncodeError:
Expand Down Expand Up @@ -91,7 +91,7 @@ def do_GET(self, environ: types.WSGIEnviron, base_prefix: str, path: str,
return (httputils.NOT_ALLOWED if limited_access else
httputils.DIRECTORY_LISTING)
content_type = xmlutils.MIMETYPES[item.tag]
content_disposition = self._content_disposition_attachement(
content_disposition = self._content_disposition_attachment(
propose_filename(item))
elif limited_access:
return httputils.NOT_ALLOWED
Expand Down

0 comments on commit d7ce2f0

Please sign in to comment.