From 89ebad14f9539aa5def9a4af53cf05dfa37b16dd Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 16 Mar 2016 09:48:45 -0300 Subject: [PATCH] Correctly allow for more than one Set-Cookie header --- daphne/http_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daphne/http_protocol.py b/daphne/http_protocol.py index 979e629..3070fda 100755 --- a/daphne/http_protocol.py +++ b/daphne/http_protocol.py @@ -161,7 +161,7 @@ class WebRequest(http.Request): # Shim code from old ASGI version, can be removed after a while if isinstance(header, six.text_type): 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) # Write out body if "content" in message: