equal
deleted
inserted
replaced
113 # it MUST NOT include any headers other than these and no |
113 # it MUST NOT include any headers other than these and no |
114 # body |
114 # body |
115 self.headers = [(k, v) for (k, v) in self.headers if |
115 self.headers = [(k, v) for (k, v) in self.headers if |
116 k in ('Date', 'ETag', 'Expires', |
116 k in ('Date', 'ETag', 'Expires', |
117 'Cache-Control', 'Vary')] |
117 'Cache-Control', 'Vary')] |
118 status = statusmessage(status.code, str(status)) |
118 status = statusmessage(status.code, pycompat.bytestr(status)) |
119 elif status == 200: |
119 elif status == 200: |
120 status = '200 Script output follows' |
120 status = '200 Script output follows' |
121 elif isinstance(status, int): |
121 elif isinstance(status, int): |
122 status = statusmessage(status) |
122 status = statusmessage(status) |
123 |
123 |