Skip to content

Commit

Permalink
The last plone.namedfile adds a canonical link header when returning …
Browse files Browse the repository at this point in the history
…the downloaded file

See plone/plone.namedfile#163
  • Loading branch information
ale-rt committed Jan 17, 2025
1 parent b2caf1d commit 1438486
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/euphorie/client/tests/test_risk.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def test_download(self):
"accept-ranges": "bytes",
"content-length": "168",
"content-type": "image/gif",
"link": '<http://nohost/plone/client/nl/ict/software-development/%2B%2Bsession%2B%2B1/1/@@download/None/dummy.gif>; rel="canonical"', # noqa: E501
},
)

Expand All @@ -233,5 +234,6 @@ def test_download(self):
{
"accept-ranges": "bytes",
"content-type": "image/png",
'link': '<http://nohost/plone/client/nl/ict/software-development/%2B%2Bsession%2B%2B1/1/@@download/image_training/dummy.gif>; rel="canonical"', # noqa: E501
},
)

0 comments on commit 1438486

Please sign in to comment.