#11660 closed (fixed)
mod_python handler does not set inbound content-type correctly
Reported by: | Nowell Strite | Owned by: | nobody |
---|---|---|---|
Component: | HTTP handling | Version: | 1.1 |
Severity: | Keywords: | mod_python content-type | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The mod_python handler does not set the inbound content-type properly (request.META['Content-Type']) instead setting it to None. This is problematic for things such as RESTful services, where we might want to specify the inbound payload content-type (application/json, text/xml, etc.). This patch retrieves the content-type properly; in the same way a previous ticket does http://code.djangoproject.com/ticket/5611 for a different portion request parsing.
Attachments (2)
Change History (6)
by , 15 years ago
Attachment: | mod_python_content_type_bug.patch added |
---|
by , 15 years ago
Attachment: | mod_python_meta_bugs.patch added |
---|
comment:1 by , 15 years ago
comment:3 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
A better patch to fix the other "this may be wrong" bug