forked from gCubeSystem/common-smartgears-legacy
git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/branches/common/common-smartgears/2.1@139932 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
471a08ca64
commit
b952768771
|
@ -40,8 +40,8 @@ public class RequestAccounting extends RequestHandler {
|
||||||
String calledMethod = e.request().getHeader(called_method_header);
|
String calledMethod = e.request().getHeader(called_method_header);
|
||||||
if (calledMethod==null){
|
if (calledMethod==null){
|
||||||
calledMethod = e.request().getRequestURI().substring(e.request().getContextPath().length());
|
calledMethod = e.request().getRequestURI().substring(e.request().getContextPath().length());
|
||||||
if (calledMethod.startsWith("/"))
|
if (calledMethod.isEmpty())
|
||||||
calledMethod = calledMethod.replaceFirst("/","");
|
calledMethod = "/";
|
||||||
}
|
}
|
||||||
CalledMethodProvider.instance.set(calledMethod);
|
CalledMethodProvider.instance.set(calledMethod);
|
||||||
String caller = AuthorizationProvider.instance.get()!=null? AuthorizationProvider.instance.get().getClient().getId(): "UNKNOWN";
|
String caller = AuthorizationProvider.instance.get()!=null? AuthorizationProvider.instance.get().getClient().getId(): "UNKNOWN";
|
||||||
|
|
Loading…
Reference in New Issue