Commit 81c89e2f authored by Andreas Jung's avatar Andreas Jung

using request.get_header() for getting hold of the if-modified-since header

instead of accessing the 'environ' dict directly
parent 41b88924
...@@ -83,7 +83,7 @@ class FileResource(BrowserView, Resource): ...@@ -83,7 +83,7 @@ class FileResource(BrowserView, Resource):
# HTTP If-Modified-Since header handling. This is duplicated # HTTP If-Modified-Since header handling. This is duplicated
# from OFS.Image.Image - it really should be consolidated # from OFS.Image.Image - it really should be consolidated
# somewhere... # somewhere...
header = request.environ.get('HTTP_IF_MODIFIED_SINCE', None) header = request.get_header('If-Modified-Since')
if header is not None: if header is not None:
header = header.split(';')[0] header = header.split(';')[0]
# Some proxies seem to send invalid date strings for this # Some proxies seem to send invalid date strings for this
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment