Ticket #10627: http.py.diff
File http.py.diff, 504 bytes (added by , 16 years ago) |
---|
-
http.py
10 10 """ 11 11 def process_response(self, request, response): 12 12 response['Date'] = http_date() 13 if not response.has_header('Content-Length') :13 if not response.has_header('Content-Length') and response._is_string: 14 14 response['Content-Length'] = str(len(response.content)) 15 15 16 16 if response.has_header('ETag'):