We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53ea0a6 commit dce3432Copy full SHA for dce3432
web.ml
@@ -252,7 +252,11 @@ module Http (IO : IO_TYPE) (Curl_IO : CURL with type 'a t = 'a IO.t) : HTTP with
252
set_readfunction h f
253
| None ->
254
Option.may (set_httpheader h) headers;
255
- set_readfunction h (fun _ -> "") (* prevent reading from stdin with POST without body *)
+ (* prevent reading from stdin with POST without body *)
256
+ set_readfunction h (fun _ -> "");
257
+ (* prevent libcurl 7.66.0+ from sending Transfer-Encoding: chunked for POST without body.
258
+ See https://github.com/curl/curl/pull/4138. *)
259
+ set_postfieldsize h 0
260
end;
261
begin match action with
262
| `GET | `DELETE | `CUSTOM _ -> ()
0 commit comments