]> granicus.if.org Git - curl/commitdiff
When saving a cookie jar, set field 1 (counted from 0) properly to TRUE if the
authorDaniel Stenberg <daniel@haxx.se>
Tue, 26 Feb 2002 13:18:08 +0000 (13:18 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 26 Feb 2002 13:18:08 +0000 (13:18 +0000)
domain starts with a dot.

lib/cookie.c

index 4362bd2571053e33061e2c83709fd45ee47ffe8b..0dc734571286e14592e69930ed3187d74c61d8c4 100644 (file)
@@ -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);