Ask for HTTP/1.1 for CURL requests, hopefully will fix #11076. The problem is

apparently caused by https://github.com/curl/curl/issues/11353, requesting
HTTP/1.1 is a workaround. (On macOS, system libCURL is used.)
This commit is contained in:
Lukas Matena 2023-11-09 16:50:14 +01:00
parent 92c4fd41bf
commit 4f18b6d0c1

View File

@ -177,6 +177,7 @@ Http::priv::priv(const std::string &url)
::curl_easy_setopt(curl, CURLOPT_URL, url.c_str()); // curl makes a copy internally
::curl_easy_setopt(curl, CURLOPT_USERAGENT, SLIC3R_APP_NAME "/" SLIC3R_VERSION);
::curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, &error_buffer.front());
::curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
}
Http::priv::~priv()