diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2021-02-11 10:47:09 +0100 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2021-02-11 12:19:19 +0000 |
commit | 111ae4ebe7cc2e389573cff5b9ac76509d6cbac0 (patch) | |
tree | 830989be595a649f45caaf649dbb50cce859d222 /libsoup/cookies/soup-cookie-jar.c | |
parent | cc9fbb8c29152b27d83aabe297add19309dd60c8 (diff) | |
download | libsoup-111ae4ebe7cc2e389573cff5b9ac76509d6cbac0.tar.gz |
Remove http and https aliases support
It doesn't seem to be used. If needed we can just bring it back in the
future.
Diffstat (limited to 'libsoup/cookies/soup-cookie-jar.c')
-rw-r--r-- | libsoup/cookies/soup-cookie-jar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsoup/cookies/soup-cookie-jar.c b/libsoup/cookies/soup-cookie-jar.c index 0afdcb79..b27c779f 100644 --- a/libsoup/cookies/soup-cookie-jar.c +++ b/libsoup/cookies/soup-cookie-jar.c @@ -597,7 +597,7 @@ soup_cookie_jar_add_cookie_full (SoupCookieJar *jar, SoupCookie *cookie, GUri *u } /* Cannot set a secure cookie over http */ - if (uri != NULL && !soup_uri_is_https (uri, NULL) && soup_cookie_get_secure (cookie)) { + if (uri != NULL && !soup_uri_is_https (uri) && soup_cookie_get_secure (cookie)) { soup_cookie_free (cookie); return; } @@ -607,7 +607,7 @@ soup_cookie_jar_add_cookie_full (SoupCookieJar *jar, SoupCookie *cookie, GUri *u old_cookie = oc->data; if (!strcmp (soup_cookie_get_name (cookie), soup_cookie_get_name (old_cookie)) && !g_strcmp0 (soup_cookie_get_path (cookie), soup_cookie_get_path (old_cookie))) { - if (soup_cookie_get_secure (oc->data) && uri != NULL && !soup_uri_is_https (uri, NULL)) { + if (soup_cookie_get_secure (oc->data) && uri != NULL && !soup_uri_is_https (uri)) { /* We do not allow overwriting secure cookies from an insecure origin * https://tools.ietf.org/html/draft-ietf-httpbis-cookie-alone-01 */ |