diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-06-24 23:34:51 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-06-24 23:34:51 +0200 |
commit | f87a3d736f3200029c8bed3ab4dad50f9680be7a (patch) | |
tree | 7db1fde8016a6f576d7cba006365f461aaee00d0 /lib/multi.c | |
parent | bf5218c85eba8d13c6c40a8047b8018b4ff5f1ed (diff) | |
parent | f44b803f1605edcfc4058b1a818c44552f0affec (diff) | |
download | curl-http2-push.tar.gz |
Merge branch 'master' into http2-pushhttp2-push
Diffstat (limited to 'lib/multi.c')
-rw-r--r-- | lib/multi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/multi.c b/lib/multi.c index 85a563d55..d4a00172e 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -400,7 +400,10 @@ CURLMcode curl_multi_add_handle(CURLM *multi_handle, /* Point to the multi's connection cache */ data->state.conn_cache = &multi->conn_cache; - data->state.infilesize = data->set.filesize; + if(data->set.httpreq == HTTPREQ_PUT) + data->state.infilesize = data->set.filesize; + else + data->state.infilesize = data->set.postfieldsize; /* This adds the new entry at the 'end' of the doubly-linked circular list of SessionHandle structs to try and maintain a FIFO queue so @@ -1529,9 +1532,6 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi, break; } - DEBUGF(infof(data, "multi_runsingle:%d call Curl_readwrite\n", - __LINE__)); - /* read/write data if it is ready to do so */ result = Curl_readwrite(data->easy_conn, data, &done); |