Commit Diff


commit - f58bfc97c627f1838696697339fb3e443c05767a
commit + 1f3dd007cde8722d370c1c242ec0910dcf39d42e
blob - /dev/null
blob + d5a2dc09aa11e6c1772cffe5bb61185f6bf2ecab (mode 644)
--- /dev/null
+++ changelogs/unreleased/gh-9547-fix-reading-data-in-chunked-request.md
@@ -0,0 +1,4 @@
+## bugfix/httpc
+
+* Fixed a bug when read from a chunked request returns
+  nothing (gh-9547).
blob - 43f425c4bd338560f818be651d6a347c84eca76f
blob + 30327afd4f9a0af195ce47af13c5d063c6b914d7
--- src/httpc.c
+++ src/httpc.c
@@ -214,8 +214,6 @@ httpc_request_new(struct httpc_env *env, const char *m
 			 curl_easy_header_cb);
 	curl_easy_setopt(req->curl_request.easy, CURLOPT_NOPROGRESS, 1L);
 	curl_easy_setopt(req->curl_request.easy, CURLOPT_NOSIGNAL, 1L);
-	curl_easy_setopt(req->curl_request.easy, CURLOPT_HTTP_VERSION,
-			 CURL_HTTP_VERSION_1_1);
 
 	ibuf_create(&req->send, &cord()->slabc, 1);