mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-25 15:16:24 +00:00
initial bdb implementation; facade by topmost assigned domain, since cookies can apply to subdomains
This commit is contained in:
@@ -679,7 +679,7 @@ http://example.example/example
|
||||
|
||||
<!-- BDBCOOKIESTORE: disk-based cookie storage for FetchHTTP -->
|
||||
<bean id="cookieStore"
|
||||
class="org.archive.modules.fetcher.BdbCookieStore">
|
||||
class="org.archive.modules.fetcher.BdbDomainCookieSetStore">
|
||||
<!-- <property name="cookiesLoadFile"><null/></property> -->
|
||||
<!-- <property name="cookiesSaveFile"><null/></property> -->
|
||||
<!-- <property name="bdbModule">
|
||||
|
||||
@@ -78,7 +78,7 @@ public class FormAuthTest extends TestCase {
|
||||
protected FetchHTTP getFetcher() throws IOException {
|
||||
if (fetchHttp == null) {
|
||||
fetchHttp = new FetchHTTP();
|
||||
fetchHttp.setCookieStore(new SimpleHostCookieSetStore());
|
||||
fetchHttp.setCookieStore(new SimpleDomainCookieSetStore());
|
||||
fetchHttp.setServerCache(new DefaultServerCache());
|
||||
CrawlMetadata uap = new CrawlMetadata();
|
||||
uap.setUserAgentTemplate(getClass().getName());
|
||||
|
||||
Reference in New Issue
Block a user