From f38e41a68b6f966e6c42a4fc00eb279fafab8d96 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Fri, 3 Apr 2020 09:59:12 +0200 Subject: [PATCH] Remote http endpoint: throw when needed --- modules/remotebackend/httpconnector.cc | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/modules/remotebackend/httpconnector.cc b/modules/remotebackend/httpconnector.cc index 5aa3d2a69f..f0cfa669ce 100644 --- a/modules/remotebackend/httpconnector.cc +++ b/modules/remotebackend/httpconnector.cc @@ -384,7 +384,6 @@ int HTTPConnector::recv_message(Json& output) { if (d_socket == nullptr ) return -1; // cannot receive :( char buffer[4096]; int rd = -1; - bool fail = false; time_t t0; arl.initialize(&resp); @@ -403,25 +402,18 @@ int HTTPConnector::recv_message(Json& output) { if (arl.ready() == false) throw NetworkError("timeout"); } catch (NetworkError &ne) { - g_log<= 400) && resp.status != 404) { // bad. - g_log<