Ticket #11660: mod_python_meta_bugs.patch

File 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

  • AUTHORS

     
    194194    Ian Holsman <http://feh.holsman.net/>
    195195    Kieran Holland <http://www.kieranholland.com>
    196196    Sung-Jin Hong <serialx.net@gmail.com>
     197    Tareque Hossain <http://www.codexn.com>
    197198    Richard House <Richard.House@i-logue.com>
    198199    Robert Rock Howard <http://djangomojo.com/>
    199200    John Huddleston <huddlej@wwu.edu>
     
    387388    Vasiliy Stavenko <stavenko@gmail.com>
    388389    Thomas Steinacher <http://www.eggdrop.ch/>
    389390    Johan C. Stöver <johan@nilling.nl>
    390     nowell strite
     391    Nowell Strite <http://nowell.strite.org/>
    391392    Thomas Stromberg <tstromberg@google.com>
    392393    Pascal Varet
    393394    SuperJared
  • django/core/handlers/modpython.py

     
    134134        if not hasattr(self, '_meta'):
    135135            self._meta = {
    136136                'AUTH_TYPE':         self._req.ap_auth_type,
    137                 'CONTENT_LENGTH':    self._req.clength, # This may be wrong
    138                 'CONTENT_TYPE':      self._req.content_type, # This may be wrong
     137                'CONTENT_LENGTH':    self._req.headers_in.get('content-length', 0),
     138                'CONTENT_TYPE':      self._req.headers_in.get('content-type'),
    139139                'GATEWAY_INTERFACE': 'CGI/1.1',
    140140                'PATH_INFO':         self.path_info,
    141141                'PATH_TRANSLATED':   None, # Not supported
Back to Top