Ticket #5897: middleware.common.patch
File middleware.common.patch, 515 bytes (added by , 17 years ago) |
---|
-
common.py
88 88 else: 89 89 response['ETag'] = etag 90 90 91 # Add the Content-Length header to the response if not already set 92 if response.status_code == 200 and not response.has_header('Content-Length'): 93 response['Content-Length'] = str(len(response.content)) 94 91 95 return response 92 96 93 97 def _is_ignorable_404(uri):