Skip to content

Commit

Permalink
Fix braino on remote IP detection.
Browse files Browse the repository at this point in the history
No spaces around header names.
  • Loading branch information
wander committed Jul 27, 2015
1 parent d5fd75b commit c60109a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symbolicationWebService.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def sendHeaders(self, errorCode):
self.set_header("Content-type", "application/json")

def prepare(self):
xForwardIp = self.request.headers.get(" X-Forwarded-For")
xForwardIp = self.request.headers.get("X-Forwarded-For")
self.remoteIp = self.request.remote_ip if not xForwardIp else xForwardIp

def head(self):
Expand Down

0 comments on commit c60109a

Please sign in to comment.