diff options
-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(); |