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.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11528 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1aef132090
commit
d2321e37eb
3
AUTHORS
3
AUTHORS
|
@ -202,6 +202,7 @@ answer newbie questions, and generally made Django that much better:
|
||||||
Kieran Holland <http://www.kieranholland.com>
|
Kieran Holland <http://www.kieranholland.com>
|
||||||
Sung-Jin Hong <serialx.net@gmail.com>
|
Sung-Jin Hong <serialx.net@gmail.com>
|
||||||
Leo "hylje" Honkanen <sealage@gmail.com>
|
Leo "hylje" Honkanen <sealage@gmail.com>
|
||||||
|
Tareque Hossain <http://www.codexn.com>
|
||||||
Richard House <Richard.House@i-logue.com>
|
Richard House <Richard.House@i-logue.com>
|
||||||
Robert Rock Howard <http://djangomojo.com/>
|
Robert Rock Howard <http://djangomojo.com/>
|
||||||
John Huddleston <huddlej@wwu.edu>
|
John Huddleston <huddlej@wwu.edu>
|
||||||
|
@ -402,7 +403,7 @@ answer newbie questions, and generally made Django that much better:
|
||||||
Vasiliy Stavenko <stavenko@gmail.com>
|
Vasiliy Stavenko <stavenko@gmail.com>
|
||||||
Thomas Steinacher <http://www.eggdrop.ch/>
|
Thomas Steinacher <http://www.eggdrop.ch/>
|
||||||
Johan C. Stöver <johan@nilling.nl>
|
Johan C. Stöver <johan@nilling.nl>
|
||||||
nowell strite
|
Nowell Strite <http://nowell.strite.org/>
|
||||||
Thomas Stromberg <tstromberg@google.com>
|
Thomas Stromberg <tstromberg@google.com>
|
||||||
Pascal Varet
|
Pascal Varet
|
||||||
SuperJared
|
SuperJared
|
||||||
|
|
|
@ -134,8 +134,8 @@ class ModPythonRequest(http.HttpRequest):
|
||||||
if not hasattr(self, '_meta'):
|
if not hasattr(self, '_meta'):
|
||||||
self._meta = {
|
self._meta = {
|
||||||
'AUTH_TYPE': self._req.ap_auth_type,
|
'AUTH_TYPE': self._req.ap_auth_type,
|
||||||
'CONTENT_LENGTH': self._req.clength, # This may be wrong
|
'CONTENT_LENGTH': self._req.headers_in.get('content-length', 0),
|
||||||
'CONTENT_TYPE': self._req.content_type, # This may be wrong
|
'CONTENT_TYPE': self._req.headers_in.get('content-type'),
|
||||||
'GATEWAY_INTERFACE': 'CGI/1.1',
|
'GATEWAY_INTERFACE': 'CGI/1.1',
|
||||||
'PATH_INFO': self.path_info,
|
'PATH_INFO': self.path_info,
|
||||||
'PATH_TRANSLATED': None, # Not supported
|
'PATH_TRANSLATED': None, # Not supported
|
||||||
|
|
Loading…
Reference in New Issue