Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 2246:9db7d2842222
fixed static file serving
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 04 May 2004 00:02:23 +0000 |
| parents | ac4f295499a4 |
| children | cd7e6d6288c6 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Mon May 03 00:28:43 2004 +0000 +++ b/roundup/cgi/client.py Tue May 04 00:02:23 2004 +0000 @@ -1,4 +1,4 @@ -# $Id: client.py,v 1.174 2004-05-02 23:16:05 richard Exp $ +# $Id: client.py,v 1.175 2004-05-04 00:02:18 richard Exp $ """WWW request handler (also used in the stand-alone server). """ @@ -478,7 +478,7 @@ self._serve_file(lmt, mime_type, content) - def _serve_file(self, last_modified, mime_type, content): + def _serve_file(self, lmt, mime_type, content): ''' guts of serve_file() and serve_static_file() ''' ims = None @@ -497,7 +497,7 @@ # spit out headers self.additional_headers['Content-Type'] = mime_type self.additional_headers['Content-Length'] = len(content) - lmt = rfc822.formatdate(last_modified) + lmt = rfc822.formatdate(lmt) self.additional_headers['Last-Modifed'] = lmt self.write(content)
