From: paulborile Date: Wed, 17 Apr 2019 10:20:42 +0000 (+0200) Subject: BUILD: wurfl: build fix for 1.9/2.0 code base X-Git-Tag: v2.0-dev3~201 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59d50145dcf3d8e127732111a16e406523132421;p=thirdparty%2Fhaproxy.git BUILD: wurfl: build fix for 1.9/2.0 code base This applies the required changes for the new buffer API that came in 1.9. This patch must be backported to 1.9. --- diff --git a/src/wurfl.c b/src/wurfl.c index 5c490f7d67..e319047ffd 100644 --- a/src/wurfl.c +++ b/src/wurfl.c @@ -783,7 +783,7 @@ static const char *ha_wurfl_retrieve_header(const char *header_name, const void msg = &smp->strm->txn->req; ctx.idx = 0; - if (http_find_full_header2(header_name, strlen(header_name), msg->chn->buf->p, idx, &ctx) == 0) + if (http_find_full_header2(header_name, strlen(header_name), ci_head(msg->chn), idx, &ctx) == 0) return 0; if (header_len > ctx.vlen)