From b079891a1ee1706f662415bfa879599d51f7df43 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sat, 7 Aug 2021 20:56:41 +0800 Subject: [PATCH] try2 fix [500 Parse Error: Expected HTTP/] in Vercel --- disk/Onedrive.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/disk/Onedrive.php b/disk/Onedrive.php index ef51905..426397d 100644 --- a/disk/Onedrive.php +++ b/disk/Onedrive.php @@ -351,7 +351,8 @@ class Onedrive { $filename = path_format($file['path'] . '/' . $filename); //echo $filename; $result = $this->MSAPI('DELETE', $filename); - return output(json_encode($this->files_format(json_decode($result['body'], true))), $result['stat']); + if ($result['stat']!=204) $r_body = json_encode($this->files_format(json_decode($result['body'], true))); + return output($r_body, $result['stat']); //return output($result['body'], $result['stat']); } public function Encrypt($folder, $passfilename, $pass) {