From ee33e30cbfbe77ee74dc1e78d145b5c89793d983 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sat, 7 Aug 2021 20:30:45 +0800 Subject: [PATCH] try fix [500 Parse Error: Expected HTTP/] in Vercel --- disk/Onedrive.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/disk/Onedrive.php b/disk/Onedrive.php index 7bd82ee..ef51905 100644 --- a/disk/Onedrive.php +++ b/disk/Onedrive.php @@ -352,7 +352,7 @@ class Onedrive { //echo $filename; $result = $this->MSAPI('DELETE', $filename); return output(json_encode($this->files_format(json_decode($result['body'], true))), $result['stat']); - return output($result['body'], $result['stat']); + //return output($result['body'], $result['stat']); } public function Encrypt($folder, $passfilename, $pass) { $filename = path_format($folder['path'] . '/' . urlencode($passfilename)); @@ -365,7 +365,7 @@ class Onedrive { if ($path1!='/'&&substr($path1, -1)=='/') $path1 = substr($path1, 0, -1); savecache('path_' . $path1 . '/?password', '', $this->disktag, 1); return output(json_encode($this->files_format(json_decode($result['body'], true))), $result['stat']); - return output($result['body'], $result['stat']); + //return output($result['body'], $result['stat']); } public function Move($file, $folder) { $filename = spurlencode($file['name']); @@ -376,7 +376,7 @@ class Onedrive { if ($path2!='/'&&substr($path2, -1)=='/') $path2 = substr($path2, 0, -1); savecache('path_' . $path2, json_decode('{}', true), $this->disktag, 1); return output(json_encode($this->files_format(json_decode($result['body'], true))), $result['stat']); - return output($result['body'], $result['stat']); + //return output($result['body'], $result['stat']); } public function Copy($file) { $filename = spurlencode($file['name']); @@ -405,7 +405,7 @@ class Onedrive { $result = $this->MSAPI('copy', $filename, $data); }*/ return output(json_encode($this->files_format(json_decode($result['body'], true))), $result['stat']); - return output($result['body'], $result['stat']); + //return output($result['body'], $result['stat']); } public function Edit($file, $content) { /*TXT一般不会超过4M,不用二段上传 @@ -432,7 +432,7 @@ class Onedrive { } //savecache('path_' . $path1, json_decode('{}',true), $_SERVER['disktag'], 1); return output(json_encode($this->files_format(json_decode($result['body'], true))), $result['stat']); - return output($result['body'], $result['stat']); + //return output($result['body'], $result['stat']); } public function AddDisk() {