]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: change url_decode to return the size of the decoded string.
authorThierry FOURNIER <tfournier@exceliance.fr>
Fri, 4 Oct 2013 14:27:27 +0000 (16:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Oct 2013 10:26:50 +0000 (12:26 +0200)
commit5068d96ac184e45f8aa3f28dd11701cffca60b87
tree45c45db62a95dd03734a5965e7dd073c13de297c
parentde6617b48648a42586d44ff5301a8f09cad48939
MINOR: http: change url_decode to return the size of the decoded string.

Currently url_decode returns 1 or 0 depending on whether it could decode
the string or not. For some future use cases, it will be needed to get the
decoded string length after a successful decoding, so let's make it return
that value, and fall back to a negative one in case of error.
src/proto_http.c
src/standard.c