Skip to content

Commit

Permalink
cache: Fix filenames in Content-Disposition
Browse files Browse the repository at this point in the history
  • Loading branch information
spbnick committed Aug 26, 2023
1 parent fdbfca7 commit 04710f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kcidb/cache/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def _extract_content_disposition(cls, response):
original_filename = parsed_url.path.rsplit('/', 1)[-1]
if original_filename:
encoded_filename = Header(original_filename, "utf-8").encode()
content_disposition = f'attachment; filename=" \
{encoded_filename}"'
content_disposition = \
f'attachment; filename="{encoded_filename}"'
else:
content_disposition = 'attachment'

Expand Down

0 comments on commit 04710f3

Please sign in to comment.