Skip to content

Commit

Permalink
fix(web): issue2551356. Add etag header ... fix env variable name
Browse files Browse the repository at this point in the history
Changed HTTP_ETAG to HTTP_IF_NONE_MATCH.
  • Loading branch information
rouilj committed Dec 10, 2024
1 parent b80e2b2 commit 6048da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roundup/cgi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2045,7 +2045,7 @@ def _serve_file(self, lmt, etag, mime_type, content=None, filename=None):
inm = self.request.headers.get('if-none-match')
elif 'HTTP_IF_NONE_MATCH' in self.env:
# maybe the cgi will put the header in the env var
inm = self.env['HTTP_ETAG']
inm = self.env['HTTP_IF_NONE_MATCH']
if inm and etag == inm:
# because we can compress, always set Accept-Encoding
# value. Otherwise caches can serve up the wrong info
Expand Down

0 comments on commit 6048da4

Please sign in to comment.