diff --git a/lib/http.c b/lib/http.c index 6d5d8fb3b..ac0301bc4 100644 --- a/lib/http.c +++ b/lib/http.c @@ -1177,6 +1177,7 @@ static size_t readmoredata(char *buffer, data->req.forbidchunk = (http->sending == HTTPSEND_REQUEST)?TRUE:FALSE; if(data->set.max_send_speed && + (data->set.max_send_speed < (curl_off_t)fullsize) && (data->set.max_send_speed < http->postsize)) /* speed limit */ fullsize = (size_t)data->set.max_send_speed;