created small user-agent detection framework to choose the right encoding for basic authentication

This commit is contained in:
Sebastian Sdorra
2014-10-17 15:43:28 +02:00
parent 8e3e42ebf5
commit 8e608d2439
18 changed files with 1527 additions and 29 deletions

View File

@@ -156,6 +156,7 @@ import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import sonia.scm.web.UserAgentParser;
/**
*
@@ -341,6 +342,9 @@ public class ScmServletModule extends ServletModule
// bind new hook api
bind(HookContextFactory.class);
bind(HookEventFacade.class);
// bind user-agent parser
bind(UserAgentParser.class);
// bind debug logging filter
if ("true".equalsIgnoreCase(System.getProperty(SYSTEM_PROPERTY_DEBUG_HTTP)))