Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,9 @@ def debug_request():
|
|
| 32 |
print("method:", request.method, flush=True)
|
| 33 |
print("path:", request.path, flush=True)
|
| 34 |
print("url:", request.url, flush=True)
|
| 35 |
-
|
|
|
|
|
|
|
| 36 |
|
| 37 |
|
| 38 |
|
|
|
|
| 32 |
print("method:", request.method, flush=True)
|
| 33 |
print("path:", request.path, flush=True)
|
| 34 |
print("url:", request.url, flush=True)
|
| 35 |
+
ua = request.headers.get("User-Agent", "")
|
| 36 |
+
ip = request.headers.get("X-Forwarded-For", request.remote_addr)
|
| 37 |
+
print("SCAN ip=%s ua=%s path=%s", ip, ua)
|
| 38 |
|
| 39 |
|
| 40 |
|