cookie: add more debug tracing to set-cookie handling

Might help us see why test977 fails occasionally.

Closes #14705
This commit is contained in:
Stefan Eissing 2024-08-28 10:06:54 +02:00 committed by Daniel Stenberg
parent ea6f5c9f0f
commit 80f9fce56d
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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. */