diff --git a/htroot/yacysearch_location.java b/htroot/yacysearch_location.java index a47a73237..7a08205fd 100644 --- a/htroot/yacysearch_location.java +++ b/htroot/yacysearch_location.java @@ -121,7 +121,7 @@ public class yacysearch_location { String promoteSearchPageGreeting = env.getConfig(SwitchboardConstants.GREETING, ""); if (env.getConfigBool(SwitchboardConstants.GREETING_NETWORK_NAME, false)) promoteSearchPageGreeting = env.getConfig("network.unit.description", ""); String hostName = header.get("Host", Domains.LOCALHOST); - if (hostName.indexOf(':',0) == -1) hostName += ":" + env.getLocalPort("port", "8090"); + if (hostName.indexOf(':',0) == -1) hostName += ":" + env.getLocalPort("port", 8090); final String originalquerystring = (post == null) ? "" : post.get("query", post.get("search", "")).trim(); // SRU compliance final boolean global = post.get("kml_resource", "local").equals("global");