Skip to content
Open

fix #111

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ public static String trimSlashes(String url) {
}

public static String trimTrailingSlashes(String url) {
while (url.endsWith("/")) {
url = url.substring(0, url.length() - 1);
int end = url.length();
while (end > 0 && url.charAt(end - 1) == '/') {
end--;
}
return url;
return end == url.length() ? url : url.substring(0, end);
}

public static String getFullRequestPath(MessageContext synCtx) {
Expand Down
Loading