]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http2: fix regression on upload EOF handling
authorStefan Eissing <stefan@eissing.org>
Thu, 20 Jul 2023 11:08:00 +0000 (13:08 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 20 Jul 2023 21:33:18 +0000 (23:33 +0200)
- a regression introduced by c9ec85121110d7cbbbed2990024222c8f5b8afe5
  where optimization of small POST bodies leads to a new code path
  for such uploads that did not trigger the "done sending" event
- add triggering this event for early "upload_done" situations

Fixes #11485
Closes #11487
Reported-by: Aleksander Mazur
lib/http.c

index f851bcd4a3443b03074861ad894e3a2ce7b8a18b..e04028b3fec54c25adf2afcbe7a028661619e5f8 100644 (file)
@@ -3380,6 +3380,9 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done)
     }
   }
 
+  if(data->req.upload_done)
+    Curl_conn_ev_data_done_send(data);
+
   if((conn->httpversion >= 20) && data->req.upload_chunky)
     /* upload_chunky was set above to set up the request in a chunky fashion,
        but is disabled here again to avoid that the chunked encoded version is