Permalink
Browse files

Set request originator to own peer in warc importer

in addition to change in 039162f
  • Loading branch information...
reger24 committed May 21, 2017
1 parent 039162f commit 1737af37cfdc2e078ea20f05ae9d8d8ffb9efbcb
Showing with 2 additions and 1 deletion.
  1. +2 −1 source/net/yacy/document/importer/WarcImporter.java
@@ -27,6 +27,7 @@
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import net.yacy.cora.document.encoding.ASCII;
import net.yacy.cora.document.id.DigestURL;
import net.yacy.cora.protocol.HeaderFramework;
import net.yacy.cora.protocol.RequestHeader;
@@ -145,7 +146,7 @@ public void indexWarcRecords(InputStream f) throws IOException {
}
final Request request = new Request(
null,
ASCII.getBytes(Switchboard.getSwitchboard().peers.mySeed().hash),
location,
requestHeader.referer() == null ? null : requestHeader.referer().hash(),
"warc",

0 comments on commit 1737af3

Please sign in to comment.