##// END OF EJS Templates
request: coerce content-type to native str...
Augie Fackler -
r34515:528b21b8 default
parent child Browse files
Show More
@@ -19,6 +19,7 b' from .common import ('
19 )
19 )
20
20
21 from .. import (
21 from .. import (
22 pycompat,
22 util,
23 util,
23 )
24 )
24
25
@@ -89,6 +90,8 b' class wsgirequest(object):'
89 pass
90 pass
90
91
91 def respond(self, status, type, filename=None, body=None):
92 def respond(self, status, type, filename=None, body=None):
93 if not isinstance(type, str):
94 type = pycompat.sysstr(type)
92 if self._start_response is not None:
95 if self._start_response is not None:
93 self.headers.append(('Content-Type', type))
96 self.headers.append(('Content-Type', type))
94 if filename:
97 if filename:
General Comments 0
You need to be logged in to leave comments. Login now