tool_operate: allow cookie lines up to 8200 bytes

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
This commit is contained in:
Daniel Stenberg 2023-06-12 09:01:30 +02:00
parent 6c25cd4508
commit 9ec099a2bc
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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)