aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-17 13:11:00 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-17 13:11:00 +0000
commitce5db9a86ea1508b0caaeec38adc5397e390dc3e (patch)
treee932aecf231b6fb77a0e98a1acfcb8caa1d80b16 /lib/url.c
parent94568f884dc30614f30918c9cca8cff40cc6c936 (diff)
Dominick Meglio implemented CURLOPT_MAXFILESIZE and --max-filesize.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index b4cfc798e..0d07e686d 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1238,6 +1238,13 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
data->set.http200aliases = va_arg(param, struct curl_slist *);
break;
+ case CURLOPT_MAXFILESIZE:
+ /*
+ * Set the maximum size of a file to download.
+ */
+ data->set.max_filesize = va_arg(param, long);
+ break;
+
default:
/* unknown tag and its companion, just ignore: */
return CURLE_FAILED_INIT; /* correct this */