From 039d032dd6f4d9720ea4e009925a45f4160df55c Mon Sep 17 00:00:00 2001 From: Oisin Canty Date: Thu, 12 Aug 2021 08:23:23 +0000 Subject: Tests: client IP address replacement. --- test/python/client_ip/wsgi.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/python/client_ip/wsgi.py (limited to 'test/python/client_ip') diff --git a/test/python/client_ip/wsgi.py b/test/python/client_ip/wsgi.py new file mode 100644 index 00000000..0e12db0a --- /dev/null +++ b/test/python/client_ip/wsgi.py @@ -0,0 +1,4 @@ +def application(env, start_response): + ip = env['REMOTE_ADDR'].encode() + start_response('200', [('Content-Length', str(len(ip)))]) + return ip -- cgit