Skip to content

Instantly share code, notes, and snippets.

@dm03514
Created July 17, 2013 19:07
status = '%s %s' % (response.status_code, response.reason_phrase)
response_headers = [(str(k), str(v)) for k, v in response.items()]
for c in response.cookies.values():
response_headers.append((str('Set-Cookie'), str(c.output(header=''))))
start_response(force_str(status), response_headers)
return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment