Fix slash escape in REST API path
addPathSegment escapes slash. This PR changes endpoint from rest%2Ffoo.view to rest/foo.view
This commit is contained in:
parent
1a31b4b645
commit
fb71facfea
|
@ -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