Skip to content

Commit

Permalink
Merge pull request #148 from vonrosen/ARI-4738
Browse files Browse the repository at this point in the history
Don't canonicalize source tag so that SourceSeedDecideRule will work.…
  • Loading branch information
nlevitt committed Feb 17, 2016
2 parents bfbd61e + 3e219af commit 8474007
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ protected void announceSeedsFromReader(BufferedReader reader, CountDownLatch lat
* @param uri String seed-containing line
*/
protected void seedLine(String uri) {
String originalUri = uri;
if (!uri.matches("[a-zA-Z][\\w+\\-]+:.*")) { // Rfc2396 s3.1 scheme,
// minus '.'
// Does not begin with scheme, so try http://
Expand All @@ -178,7 +179,7 @@ protected void seedLine(String uri) {
curi.setSeed(true);
curi.setSchedulingDirective(SchedulingConstants.MEDIUM);
if (getSourceTagSeeds()) {
curi.setSourceTag(curi.toString());
curi.setSourceTag(originalUri);
}
publishAddedSeed(curi);
} catch (URIException e) {
Expand Down

0 comments on commit 8474007

Please sign in to comment.