Skip to content

Commit ab6fc17

Browse files
Return service name instead of protocol name (#929)
Issue:203151
1 parent 059c338 commit ab6fc17

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

java/src/main/java/com/genexus/internet/HttpRequestWeb.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ public HttpRequestWeb(HttpContextWeb httpContext)
1818
{
1919
super(httpContext);
2020
}
21-
22-
public String getScriptName()
23-
{
21+
22+
public String getScriptName() {
2423
if (httpContext.getRequest() != null) {
25-
String servletPath = httpContext.getRequest().getServletPath();
26-
if (servletPath != null)
27-
return servletPath.substring(servletPath.lastIndexOf("/") +1 , servletPath.length());
24+
String requestURI = httpContext.getRequest().getRequestURI();
25+
if (requestURI != null) {
26+
return requestURI.substring(requestURI.lastIndexOf("/") + 1);
27+
}
2828
}
2929
return "";
3030
}

0 commit comments

Comments
 (0)