diff options
author | Oisin Canty <o.canty@f5.com> | 2021-08-12 08:23:23 +0000 |
---|---|---|
committer | Oisin Canty <o.canty@f5.com> | 2021-08-12 08:23:23 +0000 |
commit | 039d032dd6f4d9720ea4e009925a45f4160df55c (patch) | |
tree | a2fedb251c394a35ee22e1d797a3d186b0e50f9e /test/python | |
parent | ca373aaccd276fb412e59557a3971a8d06ada0f8 (diff) | |
download | unit-039d032dd6f4d9720ea4e009925a45f4160df55c.tar.gz unit-039d032dd6f4d9720ea4e009925a45f4160df55c.tar.bz2 |
Tests: client IP address replacement.
Diffstat (limited to 'test/python')
-rw-r--r-- | test/python/client_ip/wsgi.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |