Skip to content

Commit

Permalink
opensearch fix if user agent had no language
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5233 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
lotus committed Sep 30, 2008
1 parent b8538fa commit 93ddf20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htroot/yacysearch.java
Expand Up @@ -215,6 +215,7 @@ public static serverObjects respond(final httpRequestHeader header, final server
String agent = header.get("User-Agent");
if (agent == null) agent = System.getProperty("user.language");
language = (agent == null) ? "en" : iso639.userAgentLanguageDetection(agent);
if (language == null) language = "en";
}

int maxDistance = (querystring.indexOf('"') >= 0) ? maxDistance = query.length - 1 : Integer.MAX_VALUE;
Expand Down

0 comments on commit 93ddf20

Please sign in to comment.