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.
This commit is contained in:
Christopher Faulet 2019-03-19 14:55:11 +01:00 committed by Willy Tarreau
parent d360ac60f4
commit 2f5c784864

View File

@ -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