mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-25 04:17:42 +00:00
BUILD/MEDIUM: da: Necessary code changes for new buffer API.
The most significant change from 1.8 to >=1.9 is the buffer data structure, using the new field and fixing along side a little hidden compilation warning. This must be backported to 1.9.
This commit is contained in:
parent
21c741a665
commit
f8f8ddf3af
4
src/da.c
4
src/da.c
@ -309,7 +309,7 @@ static int da_haproxy_fetch(const struct arg *args, struct sample *smp, const ch
|
||||
hidx = &smp->strm->txn->hdr_idx;
|
||||
hmsg = &smp->strm->txn->req;
|
||||
|
||||
while (http_find_next_header(hmsg->chn->buf->p, hidx, &hctx) == 1 &&
|
||||
while (http_find_next_header(ci_head(hmsg->chn), hidx, &hctx) == 1 &&
|
||||
nbh < DA_MAX_HEADERS) {
|
||||
char *pval;
|
||||
size_t vlen;
|
||||
@ -331,7 +331,7 @@ static int da_haproxy_fetch(const struct arg *args, struct sample *smp, const ch
|
||||
atlas);
|
||||
} else if (strcmp(hbuf, "Cookie") == 0) {
|
||||
char *p, *eval;
|
||||
int pl;
|
||||
size_t pl;
|
||||
|
||||
eval = pval + hctx.vlen;
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user