Ticket #16035: gzip.py.patch
File gzip.py.patch, 484 bytes (added by , 14 years ago) |
---|
-
gzip.py
old new 32 32 if not re_accepts_gzip.search(ae): 33 33 return response 34 34 35 if response.has_header('ETag'): 36 response['ETag'] = re.sub('"$', ';gzip"', response['ETag']) 37 35 38 response.content = compress_string(response.content) 36 39 response['Content-Encoding'] = 'gzip' 37 40 response['Content-Length'] = str(len(response.content))