From c9f3b57ea3de51c1af1ac1cf1ac1c2cd4322a1b2 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 9 Feb 2016 12:56:03 -0800 Subject: [PATCH] Actually send status text --- 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 b26ebb6..24157d7 100755 --- a/daphne/http_protocol.py +++ b/daphne/http_protocol.py @@ -119,7 +119,7 @@ class WebRequest(http.Request): if isinstance(status_text, six.text_type): logger.warn("HTTP status text for %s was text - should be bytes", self.reply_channel) status_text = status_text.encode("ascii") - self.setResponseCode(message['status'], ) + self.setResponseCode(message['status'], status_text) # Write headers for header, value in message.get("headers", {}): self.setHeader(header.encode("utf8"), value)