summaryrefslogtreecommitdiff
path: root/lib/c-hyper.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-08-30 17:49:25 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-08-31 10:04:03 +0200
commit8a16e54c0cc71e15ef78d9eaf1f9155a0204202d (patch)
treeb80a5c3e75caae769b2a9c0a5eeaeb32f0c4bcc2 /lib/c-hyper.c
parentbde355c484a652fece6438e6c5b71830c08c2300 (diff)
downloadcurl-8a16e54c0cc71e15ef78d9eaf1f9155a0204202d.tar.gz
http: ignore content-length if any transfer-encoding is used
Fixes #7643 Closes #7649
Diffstat (limited to 'lib/c-hyper.c')
-rw-r--r--lib/c-hyper.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/c-hyper.c b/lib/c-hyper.c
index c43d9e327..26635cdc1 100644
--- a/lib/c-hyper.c
+++ b/lib/c-hyper.c
@@ -400,6 +400,11 @@ CURLcode Curl_hyper_stream(struct Curl_easy *data,
/* end of transfer */
*done = TRUE;
infof(data, "hyperstream is done!");
+ if(!k->bodywrites) {
+ /* hyper doesn't always call the body write callback */
+ bool stilldone;
+ result = Curl_http_firstwrite(data, data->conn, &stilldone);
+ }
break;
}
else if(t != HYPER_TASK_RESPONSE) {