]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: test-http-payload - echo: Add debug message for when incoming payload is...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 4 Apr 2018 11:58:00 +0000 (13:58 +0200)
committermartti.rannanjarvi <martti.rannanjarvi@open-xchange.com>
Sat, 18 Apr 2020 14:55:11 +0000 (14:55 +0000)
src/lib-http/test-http-payload.c

index 0f3b19dca77f09e9f957dc1a3ae16f261ac70e51..993abe3d8c0d260aa3aa257bf8f9892e1fbd0c99 100644 (file)
@@ -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);