Ticket #8765: modpython.8693.diff

File modpython.8693.diff, 614 bytes (added by semenov, 7 years ago)

The proposed patch

  • core/handlers/modpython.py

     
    190190            signals.request_finished.send(sender=self.__class__)
    191191
    192192        # Convert our custom HttpResponse object back into the mod_python req.
    193         req.content_type = response['Content-Type']
     193        req.content_type = str(response['Content-Type'])
    194194        for key, value in response.items():
    195195            if key != 'content-type':
    196196                req.headers_out[str(key)] = str(value)
Back to Top