summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aa0521f)
raw | patch | inline | side by side (parent: aa0521f)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 7 Mar 2003 21:51:31 +0000 (21:51 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 7 Mar 2003 21:51:31 +0000 (21:51 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1574 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi/client.py | patch | blob | history |
diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py
index 8f4bf01e42bd9ad2b86a3e79ef9bc37ccbb087b9..8d425923416ef1e55e91e3c013e09a67aabe635d 100644 (file)
--- a/roundup/cgi/client.py
+++ b/roundup/cgi/client.py
-# $Id: client.py,v 1.101 2003-02-27 05:43:01 richard Exp $
+# $Id: client.py,v 1.102 2003-03-07 21:51:31 richard Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
def serve_static_file(self, file):
# see if there's an if-modified-since...
- ims = self.request.headers.getheader('if-modified-since')
- # cgi will put the header in the env var
- if not ims and self.env.has_key('HTTP_IF_MODIFIED_SINCE'):
+ if hasattr(self.request, 'headers'):
+ ims = self.request.headers.getheader('if-modified-since')
+ elif self.env.has_key('HTTP_IF_MODIFIED_SINCE'):
+ # cgi will put the header in the env var
ims = self.env['HTTP_IF_MODIFIED_SINCE']
filename = os.path.join(self.instance.config.TEMPLATES, file)
lmt = os.stat(filename)[stat.ST_MTIME]