Changes between Version 5 and Version 6 of StripWhitespaceMiddleware
- Timestamp:
- May 31, 2011, 2:31:50 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
StripWhitespaceMiddleware
v5 v6 29 29 def process_response(self, request, response): 30 30 if "text" in response['Content-Type']: 31 new_content = self.whitespace.sub(' \n', response.content)31 new_content = self.whitespace.sub('', response.content) 32 32 response.content = new_content 33 33 return response