From 5d7ad9db465e8b76f07af36961f6ed0fe8bbc671 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 8 Oct 2012 20:32:57 +0100 Subject: Port to new urldb. --- content/fetch.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'content/fetch.c') 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); } } -- cgit v1.2.3