mirror of
https://github.com/curl/curl.git
synced 2026-07-23 11:47:16 +03:00
quiche: fix upload for bigger content-length
Signed-off-by: Jean-Philippe Menil <jpmenil@gmail.com> Closes #8421
This commit is contained in:
parent
4517d8eb6f
commit
145d0803bb
2 changed files with 4 additions and 6 deletions
|
|
@ -701,7 +701,10 @@ static ssize_t h3_stream_send(struct Curl_easy *data,
|
|||
H3BUGF(infof(data, "Pass on %zd body bytes to quiche", len));
|
||||
sent = quiche_h3_send_body(qs->h3c, qs->conn, stream->stream3_id,
|
||||
(uint8_t *)mem, len, FALSE);
|
||||
if(sent < 0) {
|
||||
if(sent == QUICHE_H3_ERR_DONE) {
|
||||
sent = 0;
|
||||
}
|
||||
else if(sent < 0) {
|
||||
*curlcode = CURLE_SEND_ERROR;
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue