From 66b8f48a88b755e3158cd151d55e3c19967d8726 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 26 Feb 2002 13:18:08 +0000 Subject: When saving a cookie jar, set field 1 (counted from 0) properly to TRUE if the domain starts with a dot. --- lib/cookie.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/cookie.c') 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); -- cgit v1.2.3