From: Stephan Bosch Date: Wed, 6 May 2020 00:00:48 +0000 (+0200) Subject: lib-http: test-http-client-errors: Emit error for unexpected request payload in ... X-Git-Tag: 2.3.11.2~113 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47f4cce3d20f48faf1b0e50cef50bff4796b9bfb;p=thirdparty%2Fdovecot%2Fcore.git lib-http: test-http-client-errors: Emit error for unexpected request payload in "retry payload" test. --- diff --git a/src/lib-http/test-http-client-errors.c b/src/lib-http/test-http-client-errors.c index dba81dc378..b46e4e977a 100644 --- a/src/lib-http/test-http-client-errors.c +++ b/src/lib-http/test-http-client-errors.c @@ -2,6 +2,7 @@ #include "lib.h" #include "str.h" +#include "str-sanitize.h" #include "hostpid.h" #include "ioloop.h" #include "istream.h" @@ -1034,8 +1035,8 @@ static void test_retry_payload_input(struct server_connection *conn) "\r\n" "Expected result\r\n"); } else { - if (debug) - i_debug("Unexpected payload received"); + i_error("Unexpected payload received: `%s'", + str_sanitize(line, 128)); o_stream_nsend_str(conn->conn.output, "HTTP/1.1 501 Oh no!\r\n" "Content-Length: 19\r\n"