diff --git a/source/net/yacy/cora/protocol/HeaderFramework.java b/source/net/yacy/cora/protocol/HeaderFramework.java index 92fa4b16f..8eedbddd5 100644 --- a/source/net/yacy/cora/protocol/HeaderFramework.java +++ b/source/net/yacy/cora/protocol/HeaderFramework.java @@ -33,7 +33,6 @@ import java.util.HashMap; import java.util.Iterator; import java.util.Locale; import java.util.Map; -import java.util.Properties; import java.util.TimeZone; import java.util.TreeMap; import java.util.Vector; @@ -507,14 +506,6 @@ public class HeaderFramework extends TreeMap implements Map implements Map host.indexOf(']')) { // check for ipv6 + port = NumberTools.parseIntDecSubstring(host, pos + 1); + host = host.substring(0, pos); + } else { + port = Domains.stripToPort(protocol + "://" + host); // use stripToPort to get default ports + } } final DigestURL url = new DigestURL(protocol, host, port, (args == null) ? path : path + "?" + args);