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