Show More
@@ -19,6 +19,7 b' from .common import (' | |||
|
19 | 19 | ) |
|
20 | 20 | |
|
21 | 21 | from .. import ( |
|
22 | pycompat, | |
|
22 | 23 | util, |
|
23 | 24 | ) |
|
24 | 25 | |
@@ -89,6 +90,8 b' class wsgirequest(object):' | |||
|
89 | 90 | pass |
|
90 | 91 | |
|
91 | 92 | def respond(self, status, type, filename=None, body=None): |
|
93 | if not isinstance(type, str): | |
|
94 | type = pycompat.sysstr(type) | |
|
92 | 95 | if self._start_response is not None: |
|
93 | 96 | self.headers.append(('Content-Type', type)) |
|
94 | 97 | if filename: |
General Comments 0
You need to be logged in to leave comments.
Login now