Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#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)

mod_python_content_type_bug.patch (1.1 KB ) - added by Nowell Strite 15 years ago.
mod_python_meta_bugs.patch (1.6 KB ) - added by Tareque Hossain 15 years ago.
A better patch to fix the other "this may be wrong" bug

Download all attachments as: .zip

Change History (6)

by Nowell Strite, 15 years ago

by Tareque Hossain, 15 years ago

Attachment: mod_python_meta_bugs.patch added

A better patch to fix the other "this may be wrong" bug

comment:1 by Russell Keith-Magee, 15 years ago

(In [11528]) Fixed #11660 -- Corrected the CONTENT_TYPE and CONTENT_LENGTH headers provided by the mod_python handler. Thanks to Nowell Strite and Tareque Hossain for the report and fix.

comment:2 by Alex Gaynor, 15 years ago

Resolution: fixed
Status: newclosed

Fail.

comment:3 by Russell Keith-Magee, 15 years ago

(In [11530]) [1.1.X] Fixed #11660 -- Corrected the CONTENT_TYPE and CONTENT_LENGTH headers provided by the mod_python handler. Thanks to Nowell Strite and Tareque Hossain for the report and fix.

Merge of r11528 from trunk.

comment:4 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top