Strip duplicate slash on Nextcloud Gpodder sync (#7085)
This commit is contained in:
parent
5e7858ef7e
commit
2f58b4b360
|
@ -16,6 +16,8 @@ import okhttp3.OkHttpClient;
|
|||
import okhttp3.Request;
|
||||
import okhttp3.RequestBody;
|
||||
import okhttp3.Response;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
@ -148,7 +150,7 @@ public class NextcloudSyncService implements ISyncService {
|
|||
.scheme(hostname.scheme)
|
||||
.host(hostname.host)
|
||||
.port(hostname.port)
|
||||
.addPathSegments(hostname.subfolder + path);
|
||||
.addPathSegments(StringUtils.stripStart(hostname.subfolder + path, "/"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue