mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 23:13:36 +00:00
Add a basic form of unsecure authentication (in plain password)
This commit is contained in:
@@ -100,7 +100,7 @@ public class Subsonic {
|
||||
public String getUrl() {
|
||||
String url = preferences.getServerUrl() + "/rest/";
|
||||
|
||||
return url.replace("//rest","/rest");
|
||||
return url.replace("//rest", "/rest");
|
||||
}
|
||||
|
||||
public Map<String, String> getParams() {
|
||||
@@ -112,6 +112,8 @@ public class Subsonic {
|
||||
params.put("c", preferences.getClientName());
|
||||
params.put("f", "xml");
|
||||
|
||||
if (preferences.getPassword() != null && !preferences.getPassword().trim().equals("")) params.put("p", preferences.getPassword());
|
||||
|
||||
return params;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user