mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 12:05:06 -05:00
fixed --limit-rate
This commit is contained in:
parent
54cbd7e154
commit
8cb695a963
4
CHANGES
4
CHANGES
@ -6,6 +6,10 @@
|
|||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
|
Daniel (2 February 2006)
|
||||||
|
- Make --limit-rate [num] mean bytes. It used to be that but it broke in my
|
||||||
|
change done in November 2005.
|
||||||
|
|
||||||
Daniel (30 January 2006)
|
Daniel (30 January 2006)
|
||||||
- Added CURLOPT_LOCALPORT and CURLOPT_LOCALPORTRANGE to libcurl. Set with the
|
- Added CURLOPT_LOCALPORT and CURLOPT_LOCALPORTRANGE to libcurl. Set with the
|
||||||
curl tool with --local-port. Plain and simply set the range of ports to bind
|
curl tool with --local-port. Plain and simply set the range of ports to bind
|
||||||
|
@ -20,6 +20,7 @@ This release includes the following changes:
|
|||||||
|
|
||||||
This release includes the following bugfixes:
|
This release includes the following bugfixes:
|
||||||
|
|
||||||
|
o plain --limit-rate [num] means bytes
|
||||||
o re-creating a dead connection is no longer counted internally as a followed
|
o re-creating a dead connection is no longer counted internally as a followed
|
||||||
redirect and thus prevents a weird error that would occur if a FTP
|
redirect and thus prevents a weird error that would occur if a FTP
|
||||||
connection died on an attempted re-use
|
connection died on an attempted re-use
|
||||||
|
@ -1513,7 +1513,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||||||
curl_off_t value = curlx_strtoofft(nextarg, &unit, 0);
|
curl_off_t value = curlx_strtoofft(nextarg, &unit, 0);
|
||||||
|
|
||||||
if(!*unit)
|
if(!*unit)
|
||||||
unit="b";
|
unit=(char *)"b";
|
||||||
else if(strlen(unit) > 1)
|
else if(strlen(unit) > 1)
|
||||||
unit=(char *)"w"; /* unsupported */
|
unit=(char *)"w"; /* unsupported */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user