]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cookie: add more debug tracing to set-cookie handling
authorStefan Eissing <stefan@eissing.org>
Wed, 28 Aug 2024 08:06:54 +0000 (10:06 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 28 Aug 2024 11:59:33 +0000 (13:59 +0200)
Might help us see why test977 fails occasionally.

Closes #14705

lib/cookie.c

index b0d8d84bef383ab1412de72943de906bb6907001..829b456fac1da472ddd645efd20987178cf1efa4 100644 (file)
@@ -1028,6 +1028,8 @@ Curl_cookie_add(struct Curl_easy *data,
    * must also check that the data handle is not NULL since the psl code will
    * dereference it.
    */
+  DEBUGF(infof(data, "PSL check set-cookie '%s' for domain=%s in %s",
+         co->name, co->domain, domain));
   if(data && (domain && co->domain && !Curl_host_is_ipnum(co->domain))) {
     bool acceptable = FALSE;
     char lcase[256];
@@ -1054,6 +1056,9 @@ Curl_cookie_add(struct Curl_easy *data,
       return NULL;
     }
   }
+#else
+  DEBUGF(infof(data, "NO PSL to check set-cookie '%s' for domain=%s in %s",
+         co->name, co->domain, domain));
 #endif
 
   /* A non-secure cookie may not overlay an existing secure cookie. */