try2 fix [500 Parse Error: Expected HTTP/] in Vercel

pull/397/merge
qkqpttgf 2021-08-07 20:56:41 +08:00 committed by GitHub
parent ee33e30cbf
commit b079891a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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) {