fix for latest UPnP update

pull/1/head
Michael Peter Christen 11 years ago
parent 74957f3760
commit e413beac04

@ -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");

Loading…
Cancel
Save