changeset 1498:203f6a154b30

even better if-modified-since handling for cgi-bin
author Andrey Lebedev <kedder@users.sourceforge.net>
date Fri, 07 Mar 2003 22:46:59 +0000
parents 2704d8438823
children 8ee69708da0c
files roundup/cgi/client.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/cgi/client.py	Fri Mar 07 21:51:31 2003 +0000
+++ b/roundup/cgi/client.py	Fri Mar 07 22:46:59 2003 +0000
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.102 2003-03-07 21:51:31 richard Exp $
+# $Id: client.py,v 1.103 2003-03-07 22:46:59 kedder Exp $
 
 __doc__ = """
 WWW request handler (also used in the stand-alone server).
@@ -442,6 +442,7 @@
         self.write(file.get(nodeid, 'content'))
 
     def serve_static_file(self, file):
+        ims = None
         # see if there's an if-modified-since...
         if hasattr(self.request, 'headers'):
             ims = self.request.headers.getheader('if-modified-since')

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