This commit is contained in:
Lucio Lelii 2016-12-12 16:28:17 +00:00
parent 471a08ca64
commit b952768771
1 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,8 @@ public class RequestAccounting extends RequestHandler {
String calledMethod = e.request().getHeader(called_method_header);
if (calledMethod==null){
calledMethod = e.request().getRequestURI().substring(e.request().getContextPath().length());
if (calledMethod.startsWith("/"))
calledMethod = calledMethod.replaceFirst("/","");
if (calledMethod.isEmpty())
calledMethod = "/";
}
CalledMethodProvider.instance.set(calledMethod);
String caller = AuthorizationProvider.instance.get()!=null? AuthorizationProvider.instance.get().getClient().getId(): "UNKNOWN";