BUG: payload: fix payload not retrieving arbitrary lengths
authorFelipe Guerreiro Barbosa Ruiz <felipe.ruiz@olxbr.com>
Thu, 16 Mar 2017 20:01:41 +0000 (17:01 -0300)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 Mar 2017 06:25:37 +0000 (07:25 +0100)
commit00f55524e0b215e17d82a00c0faa58efc8eafd81
tree42e42cc2d18c59c42042806dd490c171db8ac2b1
parentde40d798decc8d6a24fe6b4609b6bdcb14d7ba54
BUG: payload: fix payload not retrieving arbitrary lengths

This fixes a regression introduced in d7bdcb874bcb, that removed the
ability to use req.payload(0,0) to read the whole buffer content. The
offending commit is present starting in version 1.6, so the patch
should be backported to versions 1.6 and 1.7.
src/payload.c