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 { } else {
if ($path=='' or $path=='/') { if ($path=='' or $path=='/') {
$url .= $method; $url .= $method;
} else { } elseif (substr($path, 0, 6)=="/items") {
$url .= '/' . $method; $url .= '/' . $method;
} else {
$url .= ':/' . $method;
} }
$method='POST'; $method='POST';
$headers['Content-Type'] = 'application/json'; $headers['Content-Type'] = 'application/json';