Correctly allow for more than one Set-Cookie header

This commit is contained in:
Andrew Godwin 2016-03-16 09:48:45 -03:00
parent ddcac026af
commit 89ebad14f9

View File

@ -161,7 +161,7 @@ class WebRequest(http.Request):
# Shim code from old ASGI version, can be removed after a while # Shim code from old ASGI version, can be removed after a while
if isinstance(header, six.text_type): if isinstance(header, six.text_type):
header = header.encode("latin1") header = header.encode("latin1")
self.setHeader(header, value) self.responseHeaders.addRawHeader(header, value)
logger.debug("HTTP %s response started for %s", message['status'], self.reply_channel) logger.debug("HTTP %s response started for %s", message['status'], self.reply_channel)
# Write out body # Write out body
if "content" in message: if "content" in message: