# HG changeset patch # User František Kučera # Date 1647384573 -3600 # Node ID 2f2d6433386756dea19d3d212131aed09bcb959a # Parent 6b913e82f52afca9ff8e2bf5df9931f4095c03b6 enable HTTP and HTTPS protocols only diff -r 6b913e82f52a -r 2f2d64333867 src/HTTPClient.cpp --- a/src/HTTPClient.cpp Tue Mar 15 23:43:02 2022 +0100 +++ b/src/HTTPClient.cpp Tue Mar 15 23:49:33 2022 +0100 @@ -113,6 +113,9 @@ // set the error buffer curl_easy_setopt(impl->curl, CURLOPT_ERRORBUFFER, impl->curlErrorBuffer); + // enable HTTP and HTTPS only + curl_easy_setopt(impl->curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); + return new HTTPClient(impl); }