Fix traceback in x-forward-for in cases of localhost
This commit is contained in:
parent
ea802b4567
commit
6c1a77eecc
1 changed files with 9 additions and 8 deletions
|
|
@ -70,6 +70,7 @@ class HTTPChannelWithXForwardedFor(http.HTTPChannel):
|
||||||
Check to see if this is a reverse proxied connection.
|
Check to see if this is a reverse proxied connection.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
if self.requests:
|
||||||
CLIENT = 0
|
CLIENT = 0
|
||||||
http.HTTPChannel.allHeadersReceived(self)
|
http.HTTPChannel.allHeadersReceived(self)
|
||||||
req = self.requests[-1]
|
req = self.requests[-1]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue