From 14384867160d8c7f60bba1f058a2254a9d587ace Mon Sep 17 00:00:00 2001 From: ale-rt Date: Fri, 17 Jan 2025 14:35:40 +0100 Subject: [PATCH] The last plone.namedfile adds a canonical link header when returning the downloaded file See https://github.com/plone/plone.namedfile/pull/163 --- src/euphorie/client/tests/test_risk.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/euphorie/client/tests/test_risk.py b/src/euphorie/client/tests/test_risk.py index 39f1de5c4..fbad6d327 100644 --- a/src/euphorie/client/tests/test_risk.py +++ b/src/euphorie/client/tests/test_risk.py @@ -217,6 +217,7 @@ def test_download(self): "accept-ranges": "bytes", "content-length": "168", "content-type": "image/gif", + "link": '; rel="canonical"', # noqa: E501 }, ) @@ -233,5 +234,6 @@ def test_download(self): { "accept-ranges": "bytes", "content-type": "image/png", + 'link': '; rel="canonical"', # noqa: E501 }, )