From 86ba05b5be361602d842c9e5143f9da9bbe20b91 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 17 Jun 2021 17:18:44 +0800 Subject: [PATCH] MSAPI, GET --- disk/Onedrive.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/disk/Onedrive.php b/disk/Onedrive.php index cdd7211..e3571c2 100644 --- a/disk/Onedrive.php +++ b/disk/Onedrive.php @@ -950,7 +950,9 @@ class Onedrive { $url .= ':' . $path; if (substr($url,-1)=='/') $url=substr($url,0,-1); } - if ($method=='PUT') { + if ($method=='GET') { + $method = 'GET'; // do nothing + } elseif ($method=='PUT') { if ($path=='' or $path=='/') { $url .= 'content'; } else {