parse_client_request(): Fix status code in a LOG_LEVEL_CLF message
authorFabian Keil <fk@fabiankeil.de>
Sun, 10 Jan 2021 07:46:35 +0000 (08:46 +0100)
committerFabian Keil <fk@fabiankeil.de>
Sun, 10 Jan 2021 15:48:22 +0000 (16:48 +0100)
jcc.c

diff --git a/jcc.c b/jcc.c
index 930c299..ff390f1 100644 (file)
--- a/jcc.c
+++ b/jcc.c
@@ -1981,7 +1981,7 @@ static jb_err parse_client_request(struct client_state *csp)
          strlen(MESSED_UP_REQUEST_RESPONSE), get_write_delay(csp));
       /* XXX: Use correct size */
       log_error(LOG_LEVEL_CLF,
-         "%s - - [%T] \"Invalid request generated\" 500 0", csp->ip_addr_str);
+         "%s - - [%T] \"Invalid request generated\" 400 0", csp->ip_addr_str);
       log_error(LOG_LEVEL_ERROR,
          "Invalid request line after applying header filters.");
       free_http_request(http);