Code

Ticket #8765: modpython.8693.diff

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

The proposed patch

Line 
1Index: core/handlers/modpython.py
2===================================================================
3--- core/handlers/modpython.py  (revision 8695)
4+++ core/handlers/modpython.py  (working copy)
5@@ -190,7 +190,7 @@
6             signals.request_finished.send(sender=self.__class__)
7 
8         # Convert our custom HttpResponse object back into the mod_python req.
9-        req.content_type = response['Content-Type']
10+        req.content_type = str(response['Content-Type'])
11         for key, value in response.items():
12             if key != 'content-type':
13                 req.headers_out[str(key)] = str(value)