Port to new urldb.

This commit is contained in:
Michael Drake 2012-10-08 20:32:57 +01:00
parent e9b207c658
commit 5d7ad9db46
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}
}