disable protocol guesswork (HTTP or HTTPS must be explicitly specified in the URL)
--- a/src/HTTPClient.cpp Tue Mar 15 23:49:33 2022 +0100
+++ b/src/HTTPClient.cpp Tue Mar 15 23:58:27 2022 +0100
@@ -116,6 +116,9 @@
// enable HTTP and HTTPS only
curl_easy_setopt(impl->curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
+ // disable protocol guesswork
+ curl_easy_setopt(impl->curl, CURLOPT_DEFAULT_PROTOCOL, "no-default-protocol-specify-http-or-https-explicitly-in-url");
+
return new HTTPClient(impl);
}