From fafcfdd2dc6fc4eacce67bd7cc057af384fe26db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 24 Aug 2019 11:07:36 +0200 Subject: [PATCH] Give the OK to the connection asap --- YACReaderLibrary/server/controllers/v2/synccontroller_v2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YACReaderLibrary/server/controllers/v2/synccontroller_v2.cpp b/YACReaderLibrary/server/controllers/v2/synccontroller_v2.cpp index 6619f313..99bfc972 100644 --- a/YACReaderLibrary/server/controllers/v2/synccontroller_v2.cpp +++ b/YACReaderLibrary/server/controllers/v2/synccontroller_v2.cpp @@ -17,6 +17,8 @@ void SyncControllerV2::service(HttpRequest &request, HttpResponse &response) QLOG_TRACE() << "POST DATA: " << postData; if (postData.length() > 0) { + response.write("OK", true); + QList data = postData.split("\n"); qulonglong libraryId; @@ -70,6 +72,4 @@ void SyncControllerV2::service(HttpRequest &request, HttpResponse &response) response.write("", true); return; } - - response.write("OK", true); }