]> git.kaiwu.me - haproxy.git/commit
MINOR: Do not forward the header "Expect: 100-continue" when the option http-buffer...
authorThierry FOURNIER / OZON.IO <thierry.fournier@ozon.io>
Mon, 12 Dec 2016 14:19:58 +0000 (15:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Dec 2016 16:33:42 +0000 (17:33 +0100)
commit43ad11dc75d2f6513f1d884c031e789b419b3b72
treeb3710b20be93f7faff519925adcf5ef0f834b676
parentc1edafe4a9ca1c1f6daaac0b83d80d24aefda9c0
MINOR: Do not forward the header "Expect: 100-continue" when the option http-buffer-request is set

When the option "http-buffer-request" is set, HAProxy send itself the
"HTTP/1.1 100 Continue" response in order to retrieve the post content.
When HAProxy forward the request, it send the body directly after the
headers. The header "Expect: 100-continue" was sent with the headers.
This header is useless because the body will be sent in all cases, and
the server reponse is not removed by haproxy.

This patch removes the header "Expect: 100-continue" if HAProxy sent it
itself.
src/proto_http.c