mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-27 20:02:17 -04:00
to be merged: fix a http_add_header() api change
This commit is contained in:
parent
09c91eb59a
commit
6063841e26
1 changed files with 2 additions and 2 deletions
|
|
@ -963,12 +963,12 @@ static int hldstream_build_http_req(struct hldstream *hs, struct ist path, int e
|
|||
}
|
||||
|
||||
if (!arg_host &&
|
||||
!http_add_header(htx, ist("host"), ist(hs->url->cfg->raw_addr))) {
|
||||
!http_add_header(htx, ist("host"), ist(hs->url->cfg->raw_addr), 1)) {
|
||||
TRACE_ERROR("could not add host header", HLD_STRM_EV_TX, hs);
|
||||
goto err;
|
||||
}
|
||||
|
||||
if (arg_conn_hdr && !http_add_header(htx, ist("Connection"), ist("close"))) {
|
||||
if (arg_conn_hdr && !http_add_header(htx, ist("Connection"), ist("close"), 0)) {
|
||||
TRACE_ERROR("could not add connection header", HLD_STRM_EV_TX, hs);
|
||||
goto err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue