]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: wurfl: build fix for 1.9/2.0 code base
authorpaulborile <paul.borile@gmail.com>
Wed, 17 Apr 2019 10:20:42 +0000 (12:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 23 Apr 2019 09:00:23 +0000 (11:00 +0200)
This applies the required changes for the new buffer API that came in 1.9.
This patch must be backported to 1.9.

src/wurfl.c

index 5c490f7d67af204ec062a9531c387ed9f668706c..e319047ffd1a459ca3ee065f0881a2c16449c741 100644 (file)
@@ -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)