Changes between Version 11 and Version 12 of StripWhitespaceMiddleware
- Timestamp:
- Oct 26, 2016, 10:27:58 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
StripWhitespaceMiddleware
v11 v12 32 32 def process_response(self, request, response): 33 33 if "text" in response['Content-Type']: 34 # Uncomment the next lineto avoid failure on cached / HTTP 304 NOT MODIFIED responses without Content-Type34 #Replace preceding 'if' with following commented 'if' to avoid failure on cached / HTTP 304 NOT MODIFIED responses without Content-Type 35 35 #if response.status_code == 200 and "text" in response['Content-Type']: 36 36 if hasattr(self, 'whitespace_lead'):