diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-13 23:32:54 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-13 23:33:11 +0300 |
commit | f676edb856fbcf0406965bf14692e13ba2e55b0e (patch) | |
tree | 6d4b97c2bd0a7f7824b805a3025d439faaf9a317 | |
parent | 430f999f00224a68a967e7122894b469d5ee60bf (diff) |
fixes #1176 (Autobackup to CloudFile doesn't work)
-rw-r--r-- | plugins/CloudFile/src/Services/google_service.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CloudFile/src/Services/google_service.cpp b/plugins/CloudFile/src/Services/google_service.cpp index fe5baa91e3..c7c24333ac 100644 --- a/plugins/CloudFile/src/Services/google_service.cpp +++ b/plugins/CloudFile/src/Services/google_service.cpp @@ -187,11 +187,11 @@ auto CGDriveService::UploadFileChunk(const std::string &uploadUri, const char *c GDriveAPI::UploadFileChunkRequest request(uploadUri.c_str(), chunk, chunkSize, offset, fileSize); NLHR_PTR response(request.Send(m_hConnection)); - HandleHttpError(response); - if (response->resultCode == HTTP_CODE_PERMANENT_REDIRECT) return std::string(); + HandleHttpError(response); + if (HTTP_CODE_SUCCESS(response->resultCode)) { JSONNode root = GetJsonResponse(response); return root["id"].as_string(); |