From 4ae1715fb1f3408505df61e152119535debafb6d Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 28 Sep 2020 13:56:43 +0200 Subject: [PATCH] send_https_request(): Call receive_and_send_encrypted_post_data() if ... nothing was flushed but we're expecting a request body. Previously we would only call receive_and_send_encrypted_post_data() if we flushed part of the request body which does not work if the client headers are read without a single byte of request body. --- jcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jcc.c b/jcc.c index b6c1c109..2455ec0c 100644 --- a/jcc.c +++ b/jcc.c @@ -2168,7 +2168,7 @@ static int send_https_request(struct client_state *csp) csp->http->hostport); return 1; } - if (flushed != 0) + if (flushed != 0 || csp->expected_client_content_length != 0) { if (csp->expected_client_content_length != 0) { -- 2.39.2