Opened 17 years ago
Closed 17 years ago
#7228 closed (fixed)
ETag value does not meet HTTP spec
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | HTTP handling | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
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()
Attachments (1)
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