Closed GoogleCodeExporter closed 9 years ago
Looking at the code in both .4 and .6 I see that the _updateCache() has the
following:
status = response_headers.status
if status == 304:
status = 200
status_header = 'status: %d\r\n' % response_headers.status
header_str = info.as_string()
header_str = re.sub("\r(?!\n)|(?<!\r)\n", "\r\n", header_str)
text = "".join([status_header, header_str, content])
cache.set(cachekey, text)
Notice that after the check of the value of "status", that variable is not
used. The "status_header" variable string value is generated using the original
response_header status value.
The simple fix would be to just change that string to be generated using
"status".
Original comment by peter.a....@gmail.com
on 17 Jul 2010 at 8:12
This issue was closed by revision 46fcb773eb.
Original comment by joe.gregorio@gmail.com
on 14 Feb 2011 at 8:36
Original issue reported on code.google.com by
leonard....@gmail.com
on 8 Apr 2010 at 6:59