MSAPI, GET

pull/360/head
qkqpttgf 2021-06-17 17:18:44 +08:00 committed by GitHub
parent 7e4bf448e3
commit 86ba05b5be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -950,7 +950,9 @@ class Onedrive {
$url .= ':' . $path; $url .= ':' . $path;
if (substr($url,-1)=='/') $url=substr($url,0,-1); 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=='/') { if ($path=='' or $path=='/') {
$url .= 'content'; $url .= 'content';
} else { } else {