[Zope-Checkins] SVN: Zope/branches/2.11/lib/python/Products/Five/browser/resource.py using request.get_header() for getting hold of the if-modified-since header

Andreas Jung andreas at andreas-jung.com
Fri Jan 1 05:16:26 EST 2010


Log message for revision 107491:
  using request.get_header() for getting hold of the if-modified-since header
  instead of accessing the 'environ' dict directly
  

Changed:
  U   Zope/branches/2.11/lib/python/Products/Five/browser/resource.py

-=-
Modified: Zope/branches/2.11/lib/python/Products/Five/browser/resource.py
===================================================================
--- Zope/branches/2.11/lib/python/Products/Five/browser/resource.py	2010-01-01 10:14:07 UTC (rev 107490)
+++ Zope/branches/2.11/lib/python/Products/Five/browser/resource.py	2010-01-01 10:16:26 UTC (rev 107491)
@@ -83,7 +83,7 @@
         # HTTP If-Modified-Since header handling. This is duplicated
         # from OFS.Image.Image - it really should be consolidated
         # somewhere...
-        header = request.environ.get('HTTP_IF_MODIFIED_SINCE', None)
+        header = request.get_header('If-Modified-Since')
         if header is not None:
             header = header.split(';')[0]
             # Some proxies seem to send invalid date strings for this



More information about the Zope-Checkins mailing list