diff options
author | Alexander Tkachev | 2019-07-16 14:12:45 +0700 |
---|---|---|
committer | Matan Bareket | 2019-07-30 14:51:41 -0400 |
commit | edbea10c2e5606daec18c148c8b103649d1011c5 (patch) | |
tree | 0579a22dd3ce399c28a8a2d6ab93e7a80f5fc3a3 /backends/cloud/onedrive/onedriveuploadrequest.cpp | |
parent | e8669f693c6adbb33f515d9a4ce9d1079756e2e8 (diff) | |
download | scummvm-rg350-edbea10c2e5606daec18c148c8b103649d1011c5.tar.gz scummvm-rg350-edbea10c2e5606daec18c148c8b103649d1011c5.tar.bz2 scummvm-rg350-edbea10c2e5606daec18c148c8b103649d1011c5.zip |
CLOUD: Fix OneDriveStorage API interaction
Something changed and old API endpoint "api.onedrive.com" now does not
work. The other one, "graph.microsoft.com", does, but there were some
other changes in JSON it returns. These changes are also in this commit.
Diffstat (limited to 'backends/cloud/onedrive/onedriveuploadrequest.cpp')
-rw-r--r-- | backends/cloud/onedrive/onedriveuploadrequest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/cloud/onedrive/onedriveuploadrequest.cpp b/backends/cloud/onedrive/onedriveuploadrequest.cpp index ebf387fca2..85e0525069 100644 --- a/backends/cloud/onedrive/onedriveuploadrequest.cpp +++ b/backends/cloud/onedrive/onedriveuploadrequest.cpp @@ -33,8 +33,8 @@ namespace Cloud { namespace OneDrive { -#define ONEDRIVE_API_SPECIAL_APPROOT_UPLOAD "https://api.onedrive.com/v1.0/drive/special/approot:/%s:/upload.createSession" -#define ONEDRIVE_API_SPECIAL_APPROOT_CONTENT "https://api.onedrive.com/v1.0/drive/special/approot:/%s:/content" +#define ONEDRIVE_API_SPECIAL_APPROOT_UPLOAD "https://graph.microsoft.com/v1.0/drive/special/approot:/%s:/upload.createSession" +#define ONEDRIVE_API_SPECIAL_APPROOT_CONTENT "https://graph.microsoft.com/v1.0/drive/special/approot:/%s:/content" OneDriveUploadRequest::OneDriveUploadRequest(OneDriveStorage *storage, Common::String path, Common::SeekableReadStream *contents, Storage::UploadCallback callback, Networking::ErrorCallback ecb): Networking::Request(nullptr, ecb), _storage(storage), _savePath(path), _contentsStream(contents), _uploadCallback(callback), |