max-filesize.md: mention zero disables the limit

Reported-by: MasterInQuestion on github
Fixes #14440
Closes #14443
This commit is contained in:
Daniel Stenberg 2024-08-07 17:01:43 +02:00
parent 146759716c
commit d41916c434
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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