From bb8181b2be97b0199e5b436eb210cb227120e9b0 Mon Sep 17 00:00:00 2001 From: reger Date: Fri, 25 Apr 2014 20:15:55 +0200 Subject: [PATCH] fix: resolve url without path but searchpart e.g. http://yacy.net?q=test was resolved as host "yacy.net?q=test" now host="yacy.net" path="/" fixes http://mantis.tokeek.de/view.php?id=47 added test case for getHost --- .../cora/document/id/MultiProtocolURL.java | 7 +++-- .../document/id/MultiProtocolURLTest.java | 28 +++++++++++++++++++ 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/source/net/yacy/cora/document/id/MultiProtocolURL.java b/source/net/yacy/cora/document/id/MultiProtocolURL.java index c9af0763e..1fe482bc2 100644 --- a/source/net/yacy/cora/document/id/MultiProtocolURL.java +++ b/source/net/yacy/cora/document/id/MultiProtocolURL.java @@ -164,7 +164,8 @@ public class MultiProtocolURL implements Serializable, Comparable " + resolvedHost); + + } + } }