1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-25 07:57:12 -07:00

Better URL.

This commit is contained in:
Cedric Beust 2015-10-08 03:02:41 -07:00
parent 39578f8ecc
commit 98862fc57f

View file

@ -107,7 +107,9 @@ public class JCenterApi @Inject constructor (@Nullable @Assisted("username") val
// This actually needs to be done
// options.add("list_in_downloads=1")
path += "?" + options.join("&")
if (options.size() > 0) {
path += "?" + options.join("&")
}
http.uploadFile(username, password, path, it,
{ r: Response -> successes.add(it) },