From b3796c32ccb533791baa986acd52f5391ffde185 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Thu, 14 Nov 2024 14:27:31 +0100 Subject: [PATCH] Tier2: fix regression preventing remote errors from being logged When CURLParams::failOnError is set, it makes code stop instantly when the request has errored somewhere (400 or higher response codes), but this prevents code from displaying the error reason attached to the failed request. Setting this to false by default fixes the problem; if this option needs to be used it should be set explicitly. --- src/public/tier2/curlutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/tier2/curlutils.h b/src/public/tier2/curlutils.h index 2948d694..c20fb40f 100644 --- a/src/public/tier2/curlutils.h +++ b/src/public/tier2/curlutils.h @@ -26,7 +26,7 @@ struct CURLParams , verifyPeer(false) , followRedirect(false) , verbose(false) - , failOnError(true) + , failOnError(false) {} void* readFunction;