diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-10-08 20:32:57 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-10-08 20:32:57 +0100 |
commit | 5d7ad9db465e8b76f07af36961f6ed0fe8bbc671 (patch) | |
tree | 228e6db57b83f5f1068d725b035c3f83f6e027a1 | |
parent | e9b207c658b1771d7e208535017cbbf33d9e0cf8 (diff) | |
download | netsurf-5d7ad9db465e8b76f07af36961f6ed0fe8bbc671.tar.gz netsurf-5d7ad9db465e8b76f07af36961f6ed0fe8bbc671.tar.bz2 |
Port to new urldb.
-rw-r--r-- | content/fetch.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); } } |