From: Huangbin Zhan Date: Tue, 28 Oct 2025 03:39:54 +0000 (+0800) Subject: MINOR: http: fix 405,431,501 default errorfile X-Git-Tag: v3.3-dev11~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ad9a24ee551bc654377630da744cbb451f433012;p=thirdparty%2Fhaproxy.git MINOR: http: fix 405,431,501 default errorfile A few typos were present in the default errorfiles for the status codes above (missing dot at the end of the sentence, extra closing bracket). This fixes them. This can be backported. --- diff --git a/src/http.c b/src/http.c index 10522206d..b58185a26 100644 --- a/src/http.c +++ b/src/http.c @@ -224,11 +224,11 @@ const char *http_err_msgs[HTTP_ERR_SIZE] = { [HTTP_ERR_405] = "HTTP/1.1 405 Method Not Allowed\r\n" - "Content-length: 146\r\n" + "Content-length: 147\r\n" "Cache-Control: no-cache\r\n" "Content-Type: text/html\r\n" "\r\n" - "

405 Method Not Allowed

\nA request was made of a resource using a request method not supported by that resource\n\n", + "

405 Method Not Allowed

\nA request was made of a resource using a request method not supported by that resource.\n\n", [HTTP_ERR_407] = "HTTP/1.1 407 Unauthorized\r\n" @@ -305,11 +305,11 @@ const char *http_err_msgs[HTTP_ERR_SIZE] = { [HTTP_ERR_431] = "HTTP/1.1 431 Request Header Fields Too Large\r\n" - "Content-length: 106\r\n" + "Content-length: 105\r\n" "Cache-Control: no-cache\r\n" "Content-Type: text/html\r\n" "\r\n" - "

431 Request Header Fields Too Large

\n>Request Header Fields Too Large.\n\n", + "

431 Request Header Fields Too Large

\nRequest Header Fields Too Large.\n\n", [HTTP_ERR_500] = "HTTP/1.1 500 Internal Server Error\r\n" @@ -321,11 +321,11 @@ const char *http_err_msgs[HTTP_ERR_SIZE] = { [HTTP_ERR_501] = "HTTP/1.1 501 Not Implemented\r\n" - "Content-length: 136\r\n" + "Content-length: 135\r\n" "Cache-Control: no-cache\r\n" "Content-Type: text/html\r\n" "\r\n" - "

501 Not Implemented

\n.The server does not support the functionality required to fulfill the request.\n\n", + "

501 Not Implemented

\nThe server does not support the functionality required to fulfill the request.\n\n", [HTTP_ERR_502] = "HTTP/1.1 502 Bad Gateway\r\n"