diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2019-01-12 13:20:01 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2019-01-12 13:20:01 +0100 |
commit | 35790c09ea8ad999e632246185d629b480d59b80 (patch) | |
tree | 13d4e1d0e90f598da02eb83e5f2f1c6d28b37e11 /modules/modpy | |
parent | 18547ece59a9977139678f683db4c990b1907eab (diff) | |
parent | e691b65ce3c82cf3781e8d02e92a4a2af07c5b20 (diff) |
Update upstream source from tag 'upstream/2.0.3'
Update to upstream version '2.0.3'
with Debian dir 4066aff3b63124e17135fb5d81fdb32a06f54676
Diffstat (limited to 'modules/modpy')
-rw-r--r-- | modules/modpy/modules/modpy.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/modpy/modules/modpy.py b/modules/modpy/modules/modpy.py index 874a615..1751cca 100644 --- a/modules/modpy/modules/modpy.py +++ b/modules/modpy/modules/modpy.py @@ -31,8 +31,13 @@ def modify( request ): # response resp_payload = {}; - resp_payload['req_header'] = req_payload['req_header']; - resp_payload['req_body'] = req_payload['req_body']; + if request['request'] == 'REQMOD': + resp_payload['req_header'] = req_payload['req_header']; + resp_payload['req_body'] = req_payload['req_body']; + else: + resp_payload['req_header'] = ''; + resp_payload['req_body'] = ''; + resp_payload['res_header'] = req_payload['res_header']; resp_payload['res_body'] = req_payload['res_body']; resp_payload['ieof'] = True; |