summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cloud/cloud_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cloud/cloud_request.c b/src/cloud/cloud_request.c
index 080edb9..cd5ce55 100644
--- a/src/cloud/cloud_request.c
+++ b/src/cloud/cloud_request.c
@@ -167,7 +167,7 @@ static void car_api_post_task_ready_cb(GObject *source_object, GAsyncResult *res
}
car_api_post_request_context_t *context = g_task_get_task_data(task);
- request_result_e result = (response->response_code == 200 /*&& (strcmp(response->response_msg, "Success") == 0)*/) ?
+ request_result_e result = (response->response_code == 200 || response->response_code == 201) ?
SUCCESS :
FAILURE;