mirror of
https://github.com/c-cube/ezcurl.git
synced 2025-12-06 03:05:31 -05:00
fix: workaround servers which do not understand Expect header
This commit is contained in:
parent
91cfbc94ad
commit
9e7d9be5c3
1 changed files with 1 additions and 1 deletions
|
|
@ -320,7 +320,7 @@ module Make(IO : IO)
|
|||
match content_size_ content, meth with
|
||||
| None, _ ->
|
||||
Printf.eprintf "size not known\n%!";
|
||||
headers := ("transfer-encoding", "chunked") :: !headers
|
||||
headers := ("expect", "") :: ("transfer-encoding", "chunked") :: !headers
|
||||
| Some size , POST _ ->
|
||||
Curl.set_postfieldsize self size;
|
||||
| Some size, _ ->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue