Skip to content

Commit

Permalink
Merge pull request #11393 from camptocamp/backport/11392-to-master
Browse files Browse the repository at this point in the history
[Backport master] [Backport 2.7] [Backport 2.8] Update the cache key to avoid cache poisoning
  • Loading branch information
sbrunner authored Sep 25, 2024
2 parents ae46765 + 32349b6 commit ba4beae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geoportal/c2cgeoportal_geoportal/views/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def _proxy_response(
headers_update = {}
cache = kwargs.get("cache", False)
if cache is True:
response = self._proxy_cache(url, self.request.method, **kwargs)
response = self._proxy_cache(url, self.request.host, self.request.method, **kwargs)
else:
response = self._proxy(url, **kwargs)

Expand Down

0 comments on commit ba4beae

Please sign in to comment.