Skip to content

Commit

Permalink
fix quote
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Nov 16, 2024
1 parent 39abbc0 commit 2e54f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plone/namedfile/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def set_headers(file, response, filename=None, canonical=None):
)

if canonical is not None:
response.setHeader("Link", f'<{quote(canonical, safe='')}>; rel="canonical"')
response.setHeader("Link", f'<{quote(canonical, safe="/:&?=@")}>; rel="canonical"')

def stream_data(file, start=0, end=None):
"""Return the given file as a stream if possible."""
Expand Down

0 comments on commit 2e54f71

Please sign in to comment.