Opened 17 years ago
Closed 17 years ago
#7228 closed (fixed)
ETag value does not meet HTTP spec
Description ¶
The HTTP spec says that ETag values should be quoted either as "etag"
or W/"etag"
. The current implementation (in modules django.middleware.common and django.utils.cache) do not quote these.
The code would therefore change as follows:
etag = md5.new(response.content).hexdigest()
etag = '"%s"' % md5.new(response.content).hexdigest()
Change History (3)
by , 17 years ago
comment:1 by , 17 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Ready for checkin |
Version: | 0.96 → SVN |
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch implementing skjohn's suggestion