mirror of
https://github.com/curl/curl.git
synced 2026-08-26 13:43:34 +03:00
parent
46ef34c053
commit
25321de30e
41 changed files with 166 additions and 200 deletions
|
|
@ -179,7 +179,6 @@ static CURLcode xfer_send(struct Curl_easy *data,
|
|||
size_t hds_len, size_t *pnwritten)
|
||||
{
|
||||
CURLcode result = CURLE_OK;
|
||||
bool eos = FALSE;
|
||||
|
||||
*pnwritten = 0;
|
||||
#ifdef DEBUGBUILD
|
||||
|
|
@ -203,13 +202,7 @@ static CURLcode xfer_send(struct Curl_easy *data,
|
|||
blen = hds_len + (size_t)data->set.max_send_speed;
|
||||
}
|
||||
|
||||
if(data->req.eos_read &&
|
||||
(Curl_bufq_is_empty(&data->req.sendbuf) ||
|
||||
Curl_bufq_len(&data->req.sendbuf) == blen)) {
|
||||
DEBUGF(infof(data, "sending last upload chunk of %zu bytes", blen));
|
||||
eos = TRUE;
|
||||
}
|
||||
result = Curl_xfer_send(data, buf, blen, eos, pnwritten);
|
||||
result = Curl_xfer_send(data, buf, blen, pnwritten);
|
||||
if(!result && *pnwritten) {
|
||||
if(hds_len)
|
||||
Curl_debug(data, CURLINFO_HEADER_OUT, (char *)buf,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue