mirror of
https://github.com/curl/curl.git
synced 2026-08-26 21:24:08 +03:00
parent
9946410861
commit
c9ec851211
2 changed files with 20 additions and 8 deletions
|
|
@ -2667,11 +2667,7 @@ CURLcode Curl_http_bodysend(struct Curl_easy *data, struct connectdata *conn,
|
|||
#ifndef USE_HYPER
|
||||
/* With Hyper the body is always passed on separately */
|
||||
if(data->set.postfields) {
|
||||
|
||||
/* In HTTP2, we send request body in DATA frame regardless of
|
||||
its size. */
|
||||
if(conn->httpversion < 20 &&
|
||||
!data->state.expect100header &&
|
||||
if(!data->state.expect100header &&
|
||||
(http->postsize < MAX_INITIAL_POST_SIZE)) {
|
||||
/* if we don't use expect: 100 AND
|
||||
postsize is less than MAX_INITIAL_POST_SIZE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue