fix for canonical-from-http-header feature

pull/1/head
Michael Peter Christen 11 years ago
parent 2dd7c5be44
commit a52f3a597e

@ -700,7 +700,7 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri
link = link.substring(0, p).trim(); link = link.substring(0, p).trim();
p = link.indexOf('<'); p = link.indexOf('<');
int q = link.lastIndexOf('>'); int q = link.lastIndexOf('>');
if (p > 0 && q > 0) { if (p >= 0 && q > 0) {
link = link.substring(p + 1, q); link = link.substring(p + 1, q);
try { try {
canonical = new DigestURL(link); canonical = new DigestURL(link);

Loading…
Cancel
Save