mirror of
https://github.com/django/daphne.git
synced 2024-11-25 01:03:45 +03:00
Use clean headers to fix decoding issues
This commit is contained in:
parent
fa3c764433
commit
9f7e19cf2d
|
@ -50,7 +50,7 @@ class WebSocketProtocol(WebSocketServerProtocol):
|
||||||
|
|
||||||
if self.server.proxy_forwarded_address_header:
|
if self.server.proxy_forwarded_address_header:
|
||||||
self.client_addr = parse_x_forwarded_for(
|
self.client_addr = parse_x_forwarded_for(
|
||||||
self.http_headers,
|
self.clean_headers,
|
||||||
self.server.proxy_forwarded_address_header,
|
self.server.proxy_forwarded_address_header,
|
||||||
self.server.proxy_forwarded_port_header,
|
self.server.proxy_forwarded_port_header,
|
||||||
self.client_addr
|
self.client_addr
|
||||||
|
|
Loading…
Reference in New Issue
Block a user