diff options
author | Zhidao HONG <z.hong@f5.com> | 2022-06-20 17:19:35 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2022-06-20 17:19:35 +0800 |
commit | 045c05e4686a1fbfec58072df8d564697ebd8300 (patch) | |
tree | 4d5c1935bdf65da5fa1780fb38adf7d9c32b9bdf /test/python/forwarded_header | |
parent | 9d2672a701e3dcaee45bef9251ab55620d42fa42 (diff) | |
download | unit-045c05e4686a1fbfec58072df8d564697ebd8300.tar.gz unit-045c05e4686a1fbfec58072df8d564697ebd8300.tar.bz2 |
Tests: forwarded header replacement tests.
Diffstat (limited to 'test/python/forwarded_header')
-rw-r--r-- | test/python/forwarded_header/wsgi.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/python/forwarded_header/wsgi.py b/test/python/forwarded_header/wsgi.py new file mode 100644 index 00000000..44d370ab --- /dev/null +++ b/test/python/forwarded_header/wsgi.py @@ -0,0 +1,10 @@ +def application(env, start_response): + start_response( + '200', + [ + ('Content-Length', '0'), + ('Remote-Addr', env.get('REMOTE_ADDR')), + ('Url-Scheme', env.get('wsgi.url_scheme')), + ], + ) + return [] |