Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions ooniapi/services/ooniprobe/src/ooniprobe/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,6 @@ def extract_probe_ipaddr(request: Request) -> str:

real_ip_headers = ["X-Forwarded-For", "X-Real-IP"]

# -- DEBUG, DELETE LATER ----------------------------
for h in real_ip_headers:
if h in request.headers:
# TODO delete log after investigating issue with headers
log.info(f"{h}: {request.headers.getlist(h)}")
# ---------------------------------------------------

for h in real_ip_headers:
if h in request.headers:
return request.headers.getlist(h)[0].rpartition(" ")[-1]
Expand Down