From 4f18b6d0c1bf34f21843bcb1c78a4c73674029a9 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Thu, 9 Nov 2023 16:50:14 +0100 Subject: [PATCH] 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.) --- src/slic3r/Utils/Http.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/slic3r/Utils/Http.cpp b/src/slic3r/Utils/Http.cpp index 797207552c..8ec63d7b54 100644 --- a/src/slic3r/Utils/Http.cpp +++ b/src/slic3r/Utils/Http.cpp @@ -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()