mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 05:31:58 +08:00
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:
parent
92c4fd41bf
commit
4f18b6d0c1
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user