From 9f7e19cf2d4617dbc084ce36dc889467890d9967 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Fri, 25 May 2018 15:11:09 +0200 Subject: [PATCH] Use clean headers to fix decoding issues --- daphne/ws_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daphne/ws_protocol.py b/daphne/ws_protocol.py index 098c0b2..ba7bbb2 100755 --- a/daphne/ws_protocol.py +++ b/daphne/ws_protocol.py @@ -50,7 +50,7 @@ class WebSocketProtocol(WebSocketServerProtocol): if self.server.proxy_forwarded_address_header: self.client_addr = parse_x_forwarded_for( - self.http_headers, + self.clean_headers, self.server.proxy_forwarded_address_header, self.server.proxy_forwarded_port_header, self.client_addr