diff --git a/content/fetch.c b/content/fetch.c index 2b16512fa..51eed0e2f 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -730,7 +730,7 @@ fetch_set_cookie(struct fetch *fetch, const char *data) /* If the transaction's verifiable, we don't require * that the request uri and the parent domain match, * so don't pass in any referer/parent in this case. */ - urldb_set_cookie(data, nsurl_access(fetch->url), NULL); + urldb_set_cookie(data, fetch->url, NULL); } else if (fetch->referer != NULL) { /* Permit the cookie to be set if the fetch is unverifiable * and the fetch URI domain matches the referer. */ @@ -739,8 +739,7 @@ fetch_set_cookie(struct fetch *fetch, const char *data) * where a nested object requests a fetch, the origin URI * is the nested object's parent URI, whereas the referer * for the fetch will be the nested object's URI. */ - urldb_set_cookie(data, nsurl_access(fetch->url), - nsurl_access(fetch->referer)); + urldb_set_cookie(data, fetch->url, fetch->referer); } }