mirror of
https://gitea.mayex.net/mayekkuzu/Audinaut.git
synced 2025-01-23 19:54:54 +03:00
Merge pull request #10 from sokac/master
Fix slash escape in REST API path
This commit is contained in:
commit
d9239a3456
@ -350,7 +350,8 @@ public final class Util {
|
||||
String username = prefs.getString(Constants.PREFERENCES_KEY_USERNAME + instance, null);
|
||||
String password = prefs.getString(Constants.PREFERENCES_KEY_PASSWORD + instance, null);
|
||||
|
||||
builder.addPathSegment("rest/" + method + ".view");
|
||||
builder.addPathSegment("rest");
|
||||
builder.addPathSegment(method + ".view");
|
||||
|
||||
int hash = (username + password).hashCode();
|
||||
Pair<String, String> values = tokens.get(hash);
|
||||
|
Loading…
Reference in New Issue
Block a user