It seems that the ending slash should be remved but current code does nothing at all.
The following code always dows nothing at all:
address = address.substring(0, address.length());
It seems that the ending slash should be removed in some cases:
address = address.substring(0, address.length() - 1);
@@ -129,7 +129,7 @@ public class LoggingInInterceptor extends AbstractLoggingInterceptor {
if (uri != null && uri.startsWith("/")) {
if (address != null && !address.startsWith(uri)) {
if (address.endsWith("/") && address.length() > 1) {
- address = address.substring(0, address.length());
+ address = address.substring(0, address.length() - 1);
}
uri = address + uri;
}
