Skip to content
Snippets Groups Projects
Unverified Commit 949dcc87 authored by Michael Potthoff's avatar Michael Potthoff
Browse files

Fix AuthenticationRequestInterceptor check returning a false result if the...

Fix AuthenticationRequestInterceptor check returning a false result if the URLs have different casing but are otherwise the same. Maybe related to #223
parent 5212b54f
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -31,10 +31,10 @@ public class AuthenticationRequestInterceptor implements Interceptor {
 
HttpUrl url = request.url();
 
String cleanUrl = url.toString();
String cleanUrl = url.toString().toLowerCase();
cleanUrl = cleanUrl.substring(cleanUrl.indexOf(':'));
 
String cleanServerUrl = account.getServerUrl().toString();
String cleanServerUrl = account.getServerUrl().toString().toLowerCase();
cleanServerUrl = cleanServerUrl.substring(cleanServerUrl.indexOf(':'));
 
if (cleanUrl.startsWith(cleanServerUrl)) {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment