mirror of
https://github.com/curl/curl.git
synced 2025-09-15 08:32:41 +03:00
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:
parent
6c25cd4508
commit
9ec099a2bc
|
@ -1823,7 +1823,7 @@ static CURLcode single_transfer(struct GlobalConfig *global,
|
||||||
struct curl_slist *cl;
|
struct curl_slist *cl;
|
||||||
|
|
||||||
/* The maximum size needs to match MAX_NAME in cookie.h */
|
/* 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);
|
curlx_dyn_init(&cookies, MAX_COOKIE_LINE);
|
||||||
for(cl = config->cookies; cl; cl = cl->next) {
|
for(cl = config->cookies; cl; cl = cl->next) {
|
||||||
if(cl == config->cookies)
|
if(cl == config->cookies)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user