Skip to content

Commit 6048da4

Browse files
committed
fix(web): issue2551356. Add etag header ... fix env variable name
Changed HTTP_ETAG to HTTP_IF_NONE_MATCH.
1 parent b80e2b2 commit 6048da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/cgi/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2045,7 +2045,7 @@ def _serve_file(self, lmt, etag, mime_type, content=None, filename=None):
20452045
inm = self.request.headers.get('if-none-match')
20462046
elif 'HTTP_IF_NONE_MATCH' in self.env:
20472047
# maybe the cgi will put the header in the env var
2048-
inm = self.env['HTTP_ETAG']
2048+
inm = self.env['HTTP_IF_NONE_MATCH']
20492049
if inm and etag == inm:
20502050
# because we can compress, always set Accept-Encoding
20512051
# value. Otherwise caches can serve up the wrong info

0 commit comments

Comments
 (0)