author | František Kučera <franta-hg@frantovo.cz> |
Tue, 15 Mar 2022 23:49:33 +0100 | |
branch | v_0 |
changeset 12 | 2f2d64333867 |
parent 11 | 6b913e82f52a |
child 13 | 18f4f7e93c48 |
--- 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); }