Loading lib/http.c +8 −1 Original line number Original line Diff line number Diff line Loading @@ -219,9 +219,16 @@ static CURLcode perhapsrewind(struct connectdata *conn) { { struct HTTP *http = conn->proto.http; struct HTTP *http = conn->proto.http; struct SessionHandle *data = conn->data; struct SessionHandle *data = conn->data; curl_off_t bytessent = http->writebytecount; curl_off_t bytessent; curl_off_t expectsend = -1; /* default is unknown */ curl_off_t expectsend = -1; /* default is unknown */ if(!http) /* If this is still NULL, we have not reach very far and we can safely skip this rewinding stuff */ return CURLE_OK; bytessent = http->writebytecount; /* figure out how much data we are expected to send */ /* figure out how much data we are expected to send */ switch(data->set.httpreq) { switch(data->set.httpreq) { case HTTPREQ_POST: case HTTPREQ_POST: Loading Loading
lib/http.c +8 −1 Original line number Original line Diff line number Diff line Loading @@ -219,9 +219,16 @@ static CURLcode perhapsrewind(struct connectdata *conn) { { struct HTTP *http = conn->proto.http; struct HTTP *http = conn->proto.http; struct SessionHandle *data = conn->data; struct SessionHandle *data = conn->data; curl_off_t bytessent = http->writebytecount; curl_off_t bytessent; curl_off_t expectsend = -1; /* default is unknown */ curl_off_t expectsend = -1; /* default is unknown */ if(!http) /* If this is still NULL, we have not reach very far and we can safely skip this rewinding stuff */ return CURLE_OK; bytessent = http->writebytecount; /* figure out how much data we are expected to send */ /* figure out how much data we are expected to send */ switch(data->set.httpreq) { switch(data->set.httpreq) { case HTTPREQ_POST: case HTTPREQ_POST: Loading