mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
config2setopts: add space in cookie header with multiple -b
Closes #20184
This commit is contained in:
parent
fecc987ebf
commit
dc739fee16
2 changed files with 3 additions and 3 deletions
|
|
@ -547,8 +547,8 @@ static CURLcode cookie_setopts(struct OperationConfig *config, CURL *curl)
|
||||||
if(cl == config->cookies)
|
if(cl == config->cookies)
|
||||||
result = curlx_dyn_add(&cookies, cl->data);
|
result = curlx_dyn_add(&cookies, cl->data);
|
||||||
else
|
else
|
||||||
result = curlx_dyn_addf(&cookies, ";%s", cl->data);
|
result = curlx_dyn_addf(&cookies, ";%s%s",
|
||||||
|
ISBLANK(cl->data[0]) ? "" : " ", cl->data);
|
||||||
if(result) {
|
if(result) {
|
||||||
warnf("skipped provided cookie, the cookie header "
|
warnf("skipped provided cookie, the cookie header "
|
||||||
"would go over %u bytes", MAX_COOKIE_LINE);
|
"would go over %u bytes", MAX_COOKIE_LINE);
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ GET /we/want/that/page/%TESTNUMBER HTTP/1.1
|
||||||
Host: %HOSTIP:%HTTPPORT
|
Host: %HOSTIP:%HTTPPORT
|
||||||
User-Agent: curl/%VERSION
|
User-Agent: curl/%VERSION
|
||||||
Accept: */*
|
Accept: */*
|
||||||
Cookie: name=contents;name2=content2;name3=content3
|
Cookie: name=contents;name2=content2; name3=content3
|
||||||
|
|
||||||
</protocol>
|
</protocol>
|
||||||
</verify>
|
</verify>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue