Port to new urldb.
This commit is contained in:
parent
e9b207c658
commit
5d7ad9db46
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue