Commit e2d56e36 authored by Ludvig Ericson's avatar Ludvig Ericson

Add exc_info keyword argument to start_response.

--HG--
extra : transplant_source : %E47%D6%993%F2%0D%5B%3A%83%05%80K%B9cH%A0%D4%D0L
parent 4adfb789
......@@ -14,8 +14,11 @@ class WSGIHandler(object):
self.headers = None
self.data = []
def start_response(self, status, headers):
assert self.reason is None, 'start_response was already called'
def start_response(self, status, headers, exc_info=None):
if not exc_info:
assert self.reason is None, 'start_response was already called'
else:
self.data = []
code, self.reason = status.split(' ', 1)
self.code = int(code)
self.headers = headers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment