summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-13 23:32:54 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-13 23:33:11 +0300
commitf676edb856fbcf0406965bf14692e13ba2e55b0e (patch)
tree6d4b97c2bd0a7f7824b805a3025d439faaf9a317
parent430f999f00224a68a967e7122894b469d5ee60bf (diff)
fixes #1176 (Autobackup to CloudFile doesn't work)
-rw-r--r--plugins/CloudFile/src/Services/google_service.cpp4
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();