[z3-checkins] r53632 - z3/deliverance/trunk/deliverance
ianb at codespeak.net
ianb at codespeak.net
Wed Apr 9 23:19:19 CEST 2008
Author: ianb
Date: Wed Apr 9 23:19:16 2008
New Revision: 53632
Modified:
z3/deliverance/trunk/deliverance/wsgimiddleware.py
Log:
Add in the filtering in another place where subrequests are made
Modified: z3/deliverance/trunk/deliverance/wsgimiddleware.py
==============================================================================
--- z3/deliverance/trunk/deliverance/wsgimiddleware.py (original)
+++ z3/deliverance/trunk/deliverance/wsgimiddleware.py Wed Apr 9 23:19:16 2008
@@ -382,10 +382,10 @@
# eliminate validation headers, we want the content
- if 'HTTP_IF_MODIFIED_SINCE' in fetcher.environ:
- del fetcher.environ['HTTP_IF_MODIFIED_SINCE']
- if 'HTTP_IF_NONE_MATCH' in fetcher.environ:
- del fetcher.environ['HTTP_IF_NONE_MATCH']
+ for key in ['HTTP_ACCEPT_ENCODING', 'HTTP_IF_MATCH', 'HTTP_IF_UNMODIFIED_SINCE',
+ 'HTTP_RANGE', 'HTTP_IF_RANGE']:
+ if key in environ:
+ del environ[key]
fetcher.environ['HTTP_CACHE_CONTROL'] = 'no-cache'
More information about the z3-checkins
mailing list