changeset 8186:b938fd5223ae

fix(web): issue2551356. Add etag header ... fix env variable name Changed HTTP_ETAG to HTTP_IF_NONE_MATCH.
author John Rouillard <rouilj@ieee.org>
date Tue, 10 Dec 2024 17:38:57 -0500
parents e84d4585b16d
children 5c506c778893
files roundup/cgi/client.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/cgi/client.py	Tue Dec 10 16:06:13 2024 -0500
+++ b/roundup/cgi/client.py	Tue Dec 10 17:38:57 2024 -0500
@@ -2045,7 +2045,7 @@
                 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

Roundup Issue Tracker: http://roundup-tracker.org/