aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-02-26 13:18:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-02-26 13:18:08 +0000
commit66b8f48a88b755e3158cd151d55e3c19967d8726 (patch)
tree16874d76cb466de501659724be3f809ee109c229
parent634760cbdc48e2f1edefc1a97f104a07f3b2c87b (diff)
When saving a cookie jar, set field 1 (counted from 0) properly to TRUE if the
domain starts with a dot.
-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);