diff --git a/lib/cookie.c b/lib/cookie.c index 4362bd2571053e33061e2c83709fd45ee47ffe8b..0dc734571286e14592e69930ed3187d74c61d8c4 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);