mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUG/MINOR: proto_htx: Fix htx_res_set_status to also set the reason
Becaue the check on the return value of the function http_replace_res_status was done upside down, no reason was never set.
This commit is contained in:
parent
2672eb987a
commit
87a2c0d3f4
1 changed files with 1 additions and 1 deletions
|
|
@ -2727,7 +2727,7 @@ void htx_res_set_status(unsigned int status, const char *reason, struct stream *
|
|||
if (reason == NULL)
|
||||
reason = http_get_reason(status);
|
||||
|
||||
if (!http_replace_res_status(htx, ist2(trash.area, trash.data)))
|
||||
if (http_replace_res_status(htx, ist2(trash.area, trash.data)))
|
||||
http_replace_res_reason(htx, ist2(reason, strlen(reason)));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue