mirror of
https://github.com/django/daphne.git
synced 2024-11-21 23:46:33 +03:00
Fix poorly captured second argument on Python 2
This commit is contained in:
parent
0c633fa968
commit
f335232373
|
@ -57,7 +57,7 @@ class WebSocketProtocol(WebSocketServerProtocol):
|
||||||
self.server_addr = None
|
self.server_addr = None
|
||||||
|
|
||||||
if self.main_factory.proxy_forwarded_address_header:
|
if self.main_factory.proxy_forwarded_address_header:
|
||||||
self.client_addr, = parse_x_forwarded_for(
|
self.client_addr, self.client_scheme = parse_x_forwarded_for(
|
||||||
self.http_headers,
|
self.http_headers,
|
||||||
self.main_factory.proxy_forwarded_address_header,
|
self.main_factory.proxy_forwarded_address_header,
|
||||||
self.main_factory.proxy_forwarded_port_header,
|
self.main_factory.proxy_forwarded_port_header,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user