Skip to content

Commit e874cec

Browse files
committed
Fix Yandex.Disk upload not working in CLI
1 parent f0d0381 commit e874cec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/Scripts/yandexdisk.nut

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ function UploadFile(FileName, options) {
567567
nm.addQueryHeader("Transfer-Encoding", "");
568568
nm.addQueryHeader("Authorization",_GetAuthorizationString());
569569
nm.setMethod("PUT");
570-
nm.doGet("");
570+
nm.doUpload("", "");
571571

572572
if ( nm.responseCode() == 200 ) {
573573
local viewUrl = "";

0 commit comments

Comments
 (0)