commit | bde2c4c6214b427037cf06f2d5f1cf916e537a08 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Mon Aug 31 16:43:34 2020 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Tue Sep 01 10:55:36 2020 +0200 |
tree | d61cc862799d59802bc2dbc8279c94fd05859263 | |
parent | 4b9c0d1fc08388bf44c6ebbd88f786032dd010fc [diff] |
MINOR: http-htx: Handle an optional reason when replacing the response status When calling the http_replace_res_status() function, an optional reason may now be set. It is ignored if it points to NULL and the original reason is preserved. Only the response status is replaced. Otherwise both the status and the reason are replaced. It simplifies the API and most of time, avoids an extra call to http_replace_res_reason().