Skip to content

Commit 2e86a4e

Browse files
Update BCDNStorage.java
Uploading file creates folder instead of file.
1 parent 4f479b4 commit 2e86a4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BunnyCDN/src/BCDNStorage.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private String sendRequest(String url, String method, File arg, boolean arg2, St
7070
for (int a = 0; a < temp.length; a++) {
7171
temp[a] = java.net.URLEncoder.encode(temp[a], "UTF-8").replace("+", "%20");
7272
}
73-
url = String.join("/", temp) + "/";
73+
url = String.join("/", temp);
7474
HttpsURLConnection req = (HttpsURLConnection) (new URL(BASE_URL + "/" + nameOfZone + "/" + url))
7575
.openConnection();
7676
req.setRequestMethod(method);

0 commit comments

Comments
 (0)