diff options
Diffstat (limited to 'backends/cloud/onedrive/onedrivetokenrefresher.cpp')
-rw-r--r-- | backends/cloud/onedrive/onedrivetokenrefresher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/cloud/onedrive/onedrivetokenrefresher.cpp b/backends/cloud/onedrive/onedrivetokenrefresher.cpp index 5ee2772ba7..ce7895f41c 100644 --- a/backends/cloud/onedrive/onedrivetokenrefresher.cpp +++ b/backends/cloud/onedrive/onedrivetokenrefresher.cpp @@ -66,7 +66,7 @@ void OneDriveTokenRefresher::finishJson(Common::JSONValue *json) { if (jsonIsObject(json, "OneDriveTokenRefresher")) { Common::JSONObject result = json->asObject(); long httpResponseCode = -1; - if (jsonContainsAttribute(result, "error", "OneDriveTokenRefresher") && jsonIsObject(result.getVal("error"), "OneDriveTokenRefresher")) { + if (result.contains("error") && jsonIsObject(result.getVal("error"), "OneDriveTokenRefresher")) { //new token needed => request token & then retry original request if (_stream) { httpResponseCode = _stream->httpResponseCode(); |