equal
deleted
inserted
replaced
98 # it MUST NOT include any headers other than these and no |
98 # it MUST NOT include any headers other than these and no |
99 # body |
99 # body |
100 self.headers = [(k, v) for (k, v) in self.headers if |
100 self.headers = [(k, v) for (k, v) in self.headers if |
101 k in ('Date', 'ETag', 'Expires', |
101 k in ('Date', 'ETag', 'Expires', |
102 'Cache-Control', 'Vary')] |
102 'Cache-Control', 'Vary')] |
103 status = statusmessage(status.code, status.message) |
103 status = statusmessage(status.code, str(status)) |
104 elif status == 200: |
104 elif status == 200: |
105 status = '200 Script output follows' |
105 status = '200 Script output follows' |
106 elif isinstance(status, int): |
106 elif isinstance(status, int): |
107 status = statusmessage(status) |
107 status = statusmessage(status) |
108 |
108 |