diff --git a/channels/handler.py b/channels/handler.py index 8c2f61d..15c8d13 100644 --- a/channels/handler.py +++ b/channels/handler.py @@ -235,7 +235,7 @@ class AsgiHandler(base.BaseHandler): for c in response.cookies.values(): response_headers.append( ( - 'Set-Cookie', + b'Set-Cookie', c.output(header='').encode("ascii"), ) )