Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 fixes problem with redirects not specifying full url

open
nobody
None
5
2004-11-15
2004-11-15
Graham
No

---
src/src/net/javacoding/jspider/core/task/work/SpiderHttpURLTask.java
2004-11-15 16:31:32.531250000 +0000
+++
src/src/net/javacoding/jspider/core/task/work/SpiderHttpURLTask.java.old
2004-11-15 16:44:33.296875000 +0000
@@ -67,7 +67,7 @@
case
HttpURLConnection.HTTP_MOVED_PERM:
case
HttpURLConnection.HTTP_MOVED_TEMP:
String redirectURL =
connection.getHeaderField("location");
- notifyEvent(url, new
URLFoundEvent(context, url, URLUtil.normalize(new
URL(url, redirectURL))));
+ notifyEvent(url, new
URLFoundEvent(context, url, URLUtil.normalize(new
URL(redirectURL))));
break;
default:
break;

Discussion