fix cant upload

pull/440/merge
qkqpttgf 2021-10-07 12:39:49 +08:00 committed by GitHub
parent cb478ccf66
commit 0220c29dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1010,8 +1010,10 @@ class Onedrive {
} else {
if ($path=='' or $path=='/') {
$url .= $method;
} else {
} elseif (substr($path, 0, 6)=="/items") {
$url .= '/' . $method;
} else {
$url .= ':/' . $method;
}
$method='POST';
$headers['Content-Type'] = 'application/json';