Ticket #11660: mod_python_content_type_bug.patch

File mod_python_content_type_bug.patch, 1.1 KB (added by Nowell Strite, 15 years ago)
  • AUTHORS

     
    401401    Vasiliy Stavenko <stavenko@gmail.com>
    402402    Thomas Steinacher <http://www.eggdrop.ch/>
    403403    Johan C. Stöver <johan@nilling.nl>
    404     nowell strite
     404    Nowell Strite <http://nowell.strite.org>
    405405    Thomas Stromberg <tstromberg@google.com>
    406406    Pascal Varet
    407407    SuperJared
  • django/core/handlers/modpython.py

     
    135135            self._meta = {
    136136                'AUTH_TYPE':         self._req.ap_auth_type,
    137137                'CONTENT_LENGTH':    self._req.clength, # This may be wrong
    138                 'CONTENT_TYPE':      self._req.content_type, # This may be wrong
     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