We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62353d0 commit 30f3860Copy full SHA for 30f3860
ooniapi/services/ooniprobe/src/ooniprobe/utils.py
@@ -126,13 +126,6 @@ def extract_probe_ipaddr(request: Request) -> str:
126
127
real_ip_headers = ["X-Forwarded-For", "X-Real-IP"]
128
129
- # -- DEBUG, DELETE LATER ----------------------------
130
- for h in real_ip_headers:
131
- if h in request.headers:
132
- # TODO delete log after investigating issue with headers
133
- log.info(f"{h}: {request.headers.getlist(h)}")
134
- # ---------------------------------------------------
135
-
136
for h in real_ip_headers:
137
if h in request.headers:
138
return request.headers.getlist(h)[0].rpartition(" ")[-1]
0 commit comments