mirror of
https://github.com/django/daphne.git
synced 2024-11-22 07:56:34 +03:00
Correctly allow for more than one Set-Cookie header
This commit is contained in:
parent
ddcac026af
commit
89ebad14f9
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user