From: Daniel Stenberg Date: Tue, 26 Feb 2002 13:18:08 +0000 (+0000) Subject: When saving a cookie jar, set field 1 (counted from 0) properly to TRUE if the X-Git-Tag: curl-7_9_5~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66b8f48a88b755e3158cd151d55e3c19967d8726;p=curl When saving a cookie jar, set field 1 (counted from 0) properly to TRUE if the domain starts with a dot. --- diff --git a/lib/cookie.c b/lib/cookie.c index 4362bd257..0dc734571 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -149,6 +149,7 @@ Curl_cookie_add(struct CookieInfo *c, } else if(strequal("domain", name)) { co->domain=strdup(what); + co->field1= (what[0]=='.')?2:1; } else if(strequal("version", name)) { co->version=strdup(what);