Skip to content

Commit c8677bb

Browse files
author
Andrey Lebedev
committed
even better if-modified-since handling for cgi-bin
1 parent 57d408d commit c8677bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roundup/cgi/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.102 2003-03-07 21:51:31 richard Exp $
1+
# $Id: client.py,v 1.103 2003-03-07 22:46:59 kedder Exp $
22

33
__doc__ = """
44
WWW request handler (also used in the stand-alone server).
@@ -442,6 +442,7 @@ def serve_file(self, designator, dre=re.compile(r'([^\d]+)(\d+)')):
442442
self.write(file.get(nodeid, 'content'))
443443

444444
def serve_static_file(self, file):
445+
ims = None
445446
# see if there's an if-modified-since...
446447
if hasattr(self.request, 'headers'):
447448
ims = self.request.headers.getheader('if-modified-since')

0 commit comments

Comments
 (0)