Code

even better if-modified-since handling for cgi-bin
authorkedder <kedder@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 7 Mar 2003 22:46:59 +0000 (22:46 +0000)
committerkedder <kedder@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 7 Mar 2003 22:46:59 +0000 (22:46 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1575 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/client.py

index 8d425923416ef1e55e91e3c013e09a67aabe635d..4fbf10a2f35090535dae689d1f65359cf5fe4a44 100644 (file)
@@ -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 @@ class Client:
         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')