summaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-03-26 13:08:44 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-03-26 23:08:36 +0100
commitb8e9a27afb0e6a79267d4189afd196f636b8778f (patch)
treeb6b76b8ee1447e981fa658de0ace12ced2ff6e19 /lib/http.c
parent9a4a8ef451ed0a14242dc9e347064cc4bf4cbb87 (diff)
downloadcurl-b8e9a27afb0e6a79267d4189afd196f636b8778f.tar.gz
send_speed: simplify the checks for if a speed limit is setbagder/http-post-speed-limit
... as we know the value cannot be set to negative: enforced by setopt()
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index e467771a7..abfc383bf 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -1167,7 +1167,7 @@ static size_t readmoredata(char *buffer,
/* make sure that a HTTP request is never sent away chunked! */
data->req.forbidchunk = (http->sending == HTTPSEND_REQUEST)?TRUE:FALSE;
- if((data->set.max_send_speed > 0) &&
+ if(data->set.max_send_speed &&
(data->set.max_send_speed < http->postsize))
/* speed limit */
fullsize = (size_t)data->set.max_send_speed;