Opened 9 years ago
Closed 9 years ago
#25368 closed Cleanup/optimization (invalid)
Rename X_CSRFTOKEN to X-CSRFTOKEN
Reported by: | Belegnar | Owned by: | nobody |
---|---|---|---|
Component: | CSRF | Version: | 1.8 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Is it possible to rename X_CSRFTOKEN to X-CSRFTOKEN at middleware/csrf.py ?
Using underscore in http header name is not common at all.
http://www.iana.org/assignments/message-headers/message-headers.xml#perm-headers
Note:
See TracTickets
for help on using tickets.
Hi, I think you've missed the documentation on how Django treats HTTP headers: