pg-yang commented on code in PR #10684:
URL: https://github.com/apache/skywalking/pull/10684#discussion_r1167426537
##########
oap-server/server-library/library-server/src/main/java/org/apache/skywalking/oap/server/library/server/http/HTTPServer.java:
##########
@@ -119,4 +123,14 @@ public void addHandler(Object handler, List<HttpMethod>
httpMethods) {
public void start() {
sb.build().start().join();
}
+
+ private String transformAbsoluteURI(final String uri) {
+ if (uri.startsWith("https://")) {
+ return uri.substring(uri.indexOf("/", 9));
Review Comment:
`"https://".length=8`
`uri.indexOf("/", 9)` means that find the index of '/' from
`"https://".length+1`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]