aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/cookie.c1
1 files changed, 1 insertions, 0 deletions
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);