mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 14:21:00 +01:00
BUG/MINOR: http: Fix content-length of the default 500 error
96 bytes is announce in the C-L header for a message of body of 97 bytes. This
bug was introduced by the patch 46a030cdd ("CLEANUP: assorted typo fixes in the
code and comments").
This patch must be backported in all versions where the patch above is (the 2.2
for now).
This commit is contained in:
parent
ab8771285c
commit
5563392554
@ -284,7 +284,7 @@ const char *http_err_msgs[HTTP_ERR_SIZE] = {
|
||||
|
||||
[HTTP_ERR_500] =
|
||||
"HTTP/1.1 500 Internal Server Error\r\n"
|
||||
"Content-length: 96\r\n"
|
||||
"Content-length: 97\r\n"
|
||||
"Cache-Control: no-cache\r\n"
|
||||
"Content-Type: text/html\r\n"
|
||||
"\r\n"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user