Hi,

On Tue, Oct 28, 2025 at 04:23:03AM +0000, PR Bot wrote:
> Dear list!
> 
> Author: Huangbin Zhan <[email protected]>
> Number of patches: 1
> 
> This is an automated relay of the Github pull request:
>    MINOR: http: fix 405,431,501 default errorfile
(...)

> From 12bafd5451defddc4e07a7b98c2a72f99efec1db Mon Sep 17 00:00:00 2001
> From: Huangbin Zhan <[email protected]>
> Date: Tue, 28 Oct 2025 11:39:54 +0800
> Subject: [PATCH] MINOR: http: fix 405,431,501 default errorfile
> 
> ---
>  src/http.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/src/http.c b/src/http.c
> index 10522206d06c0..b58185a26a436 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"
> -     "<html><body><h1>405 Method Not Allowed</h1>\nA request was made of a 
> resource using a request method not supported by that 
> resource\n</body></html>\n",
> +     "<html><body><h1>405 Method Not Allowed</h1>\nA request was made of a 
> resource using a request method not supported by that 
> resource.\n</body></html>\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"
> -     "<html><body><h1>431 Request Header Fields Too Large</h1>\n>Request 
> Header Fields Too Large.\n</body></html>\n",
> +     "<html><body><h1>431 Request Header Fields Too Large</h1>\nRequest 
> Header Fields Too Large.\n</body></html>\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"
> -     "<html><body><h1>501 Not Implemented</h1>\n.The server does not support 
> the functionality required to fulfill the request.\n</body></html>\n",
> +     "<html><body><h1>501 Not Implemented</h1>\nThe server does not support 
> the functionality required to fulfill the request.\n</body></html>\n",
>  
>       [HTTP_ERR_502] =
>       "HTTP/1.1 502 Bad Gateway\r\n"

Looks fine, good catch! I'll add a descriptive commit message and will
merge it.

Thank you!
Willy


Reply via email to