From: Daniel Stenberg Date: Wed, 7 Aug 2024 15:01:43 +0000 (+0200) Subject: max-filesize.md: mention zero disables the limit X-Git-Tag: curl-8_10_0~336 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d41916c434ad593f36037a06f7bbd37b4fa71135;p=thirdparty%2Fcurl.git max-filesize.md: mention zero disables the limit Reported-by: MasterInQuestion on github Fixes #14440 Closes #14443 --- diff --git a/docs/cmdline-opts/max-filesize.md b/docs/cmdline-opts/max-filesize.md index 998359cf74..cf2ac65376 100644 --- a/docs/cmdline-opts/max-filesize.md +++ b/docs/cmdline-opts/max-filesize.md @@ -16,9 +16,11 @@ Example: # `--max-filesize` -Specify the maximum size (in bytes) of a file to download. If the file -requested is larger than this value, the transfer does not start and curl -returns with exit code 63. +When set to a non-zero value, it specifies the maximum size (in bytes) of a +file to download. If the file requested is larger than this value, the +transfer does not start and curl returns with exit code 63. + +Setting the maximum value to zero disables the limit. A size modifier may be used. For example, Appending 'k' or 'K' counts the number as kilobytes, 'm' or 'M' makes it megabytes, while 'g' or 'G' makes it