summaryrefslogtreecommitdiff
path: root/modules/echo
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2019-01-12 13:20:01 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2019-01-12 13:20:01 +0100
commit35790c09ea8ad999e632246185d629b480d59b80 (patch)
tree13d4e1d0e90f598da02eb83e5f2f1c6d28b37e11 /modules/echo
parent18547ece59a9977139678f683db4c990b1907eab (diff)
parente691b65ce3c82cf3781e8d02e92a4a2af07c5b20 (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/echo')
-rw-r--r--modules/echo/echo.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/echo/echo.cpp b/modules/echo/echo.cpp
index a8496c5..4250802 100644
--- a/modules/echo/echo.cpp
+++ b/modules/echo/echo.cpp
@@ -32,8 +32,12 @@ namespace bitz {
icap::payload_t payload;
// copy payload from request
- payload.req_header = request->payload().req_header;
- payload.req_body = request->payload().req_body;
+ if ( request->header()->method() == "REQMOD" ) {
+ payload.req_header = request->payload().req_header;
+ payload.req_body = request->payload().req_body;
+ }
+
+ // response body should only have content for RESPMOD requests
payload.res_header = request->payload().res_header;
payload.res_body = request->payload().res_body;