mirror of https://github.com/moparisthebest/curl
When saving a cookie jar, set field 1 (counted from 0) properly to TRUE if the
domain starts with a dot.
This commit is contained in:
parent
634760cbdc
commit
66b8f48a88
|
@ -149,6 +149,7 @@ Curl_cookie_add(struct CookieInfo *c,
|
||||||
}
|
}
|
||||||
else if(strequal("domain", name)) {
|
else if(strequal("domain", name)) {
|
||||||
co->domain=strdup(what);
|
co->domain=strdup(what);
|
||||||
|
co->field1= (what[0]=='.')?2:1;
|
||||||
}
|
}
|
||||||
else if(strequal("version", name)) {
|
else if(strequal("version", name)) {
|
||||||
co->version=strdup(what);
|
co->version=strdup(what);
|
||||||
|
|
Loading…
Reference in New Issue