]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: http: functions set-{path,query,method,uri} breaks the HTTP parser
authorThierry FOURNIER <tfournier@haproxy.com>
Sun, 26 Apr 2015 16:01:40 +0000 (18:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 27 Apr 2015 09:56:52 +0000 (11:56 +0200)
commit7f6192c0d313d6ae28096f606c701ff212687f8c
tree36b0f30a4176be21b12d71b46cbe63cbe0e09945
parente91ffd093e548aa08d7ccb835fd261f3d71ffb17
BUG/MEDIUM: http: functions set-{path,query,method,uri} breaks the HTTP parser

When one of these functions replaces a part of the query string by
a shorter or longer new one, the header parsing is broken. This is
because the start of the first header is not updated.

In the same way, the total length of the request line is not updated.
I dont see any bug caused by this miss, but I guess than it is better
to store the good length.

This bug is only in the development version.
src/proto_http.c