Skip to content

Commit

Permalink
MSAPI, GET
Browse files Browse the repository at this point in the history
  • Loading branch information
qkqpttgf authored Jun 17, 2021
1 parent 7e4bf44 commit 86ba05b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion disk/Onedrive.php
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,9 @@ protected function MSAPI($method, $path, $data = '')
$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 {
Expand Down

0 comments on commit 86ba05b

Please sign in to comment.