Commit 66b8f48a authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

When saving a cookie jar, set field 1 (counted from 0) properly to TRUE if the

domain starts with a dot.
parent 634760cb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);