From 2f5c7848644792640f3957a9b40cb77038bf15c9 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 19 Mar 2019 14:55:11 +0100 Subject: [PATCH] BUG/MINOR: proto-http: Don't forward request body anymore on error In the commit 93e02d8b7 ("MINOR: proto-http/proto-htx: Make error handling clearer during data forwarding"), a return clause was removed by error in the function http_request_forward_body(). This bug seems not having any visible impact. This patch must be backported to 1.9. --- src/proto_http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/proto_http.c b/src/proto_http.c index 85e007b49..9ba0eb594 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -3992,6 +3992,7 @@ int http_request_forward_body(struct stream *s, struct channel *req, int an_bit) msg->err_state = msg->msg_state; msg->msg_state = HTTP_MSG_ERROR; http_resync_states(s); + return 1; } /* Note that we don't have to send 100-continue back because we don't