in CrawlURI.createCrawlURI(), avoid clobbering inherited data with data from Link

This commit is contained in:
Noah Levitt
2014-07-02 13:17:42 -07:00
parent 47e4e98608
commit f2055ee2ae
@@ -1633,10 +1633,10 @@ implements Reporter, Serializable, OverlayContext {
CrawlURI newCaURI = new CrawlURI(u,
extendHopsPath(getPathFromSeed(),link.getHopType().getHopChar()),
getUURI(), link.getContext());
newCaURI.inheritFrom(this);
if (link.hasData()) {
newCaURI.data = link.getData();
}
newCaURI.inheritFrom(this);
return newCaURI;
}