summaryrefslogtreecommitdiff
path: root/modules/modpy
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2019-01-12 13:19:59 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2019-01-12 13:19:59 +0100
commite691b65ce3c82cf3781e8d02e92a4a2af07c5b20 (patch)
treef6c8d03c3da506ca5e3a1e1304f68a1c3ddbef2f /modules/modpy
parent7327c3426e5fbc2d53446c9df3985dd76c9d6d77 (diff)
New upstream version 2.0.3upstream/2.0.3upstream
Diffstat (limited to 'modules/modpy')
-rw-r--r--modules/modpy/modules/modpy.py9
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;