From 4d23655b5c174214c5177ce3c9ab042eab549bd7 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Fri, 10 Feb 2017 09:52:16 -0800 Subject: [PATCH] Fixed #78: Use right variable for WS headers --- 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 92aff47..83008c8 100755 --- a/daphne/ws_protocol.py +++ b/daphne/ws_protocol.py @@ -59,7 +59,7 @@ class WebSocketProtocol(WebSocketServerProtocol): if self.main_factory.proxy_forwarded_address_header: self.client_addr = parse_x_forwarded_for( - self.requestHeaders, + self.http_headers, self.main_factory.proxy_forwarded_address_header, self.main_factory.proxy_forwarded_port_header, self.client_addr