]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operate: allow cookie lines up to 8200 bytes
authorDaniel Stenberg <daniel@haxx.se>
Mon, 12 Jun 2023 07:01:30 +0000 (09:01 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 12 Jun 2023 12:15:37 +0000 (14:15 +0200)
Since this option might set multiple cookies in the same line, it does
not make total sense to cap this at 4096 bytes, which is the limit for a
single cookie name or value.

Closes #11303

src/tool_operate.c

index a72e8b6d27e7357abeb10472075af3541eaafab5..9cff7b33642cbb083cde6d903d3b3834e30dc27b 100644 (file)
@@ -1823,7 +1823,7 @@ static CURLcode single_transfer(struct GlobalConfig *global,
           struct curl_slist *cl;
 
           /* The maximum size needs to match MAX_NAME in cookie.h */
-#define MAX_COOKIE_LINE 4096
+#define MAX_COOKIE_LINE 8200
           curlx_dyn_init(&cookies, MAX_COOKIE_LINE);
           for(cl = config->cookies; cl; cl = cl->next) {
             if(cl == config->cookies)