From: Stephan Bosch Date: Wed, 4 Apr 2018 11:58:00 +0000 (+0200) Subject: lib-http: test-http-payload - echo: Add debug message for when incoming payload is... X-Git-Tag: 2.3.11.2~289 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a963c3a98d3b70da189efe581f0b95b4f3e11fcf;p=thirdparty%2Fdovecot%2Fcore.git lib-http: test-http-payload - echo: Add debug message for when incoming payload is finished. --- diff --git a/src/lib-http/test-http-payload.c b/src/lib-http/test-http-payload.c index 0f3b19dca7..993abe3d8c 100644 --- a/src/lib-http/test-http-payload.c +++ b/src/lib-http/test-http-payload.c @@ -297,6 +297,12 @@ static void client_request_finish_payload_in(struct client_request *creq) payload_input = iostream_temp_finish(&creq->payload_output, 4096); + if (debug) { + i_debug("test server: echo: " + "finished receiving payload for %s", + creq->path); + } + resp = http_server_response_create(creq->server_req, 200, "OK"); http_server_response_add_header(resp, "Content-Type", "text/plain"); http_server_response_set_payload(resp, payload_input);