Merge pull request #13548 from shuffle2/http

HttpRequest: remove some legacy code for windows < 8.1
This commit is contained in:
Tilka 2025-04-20 22:07:32 +01:00 committed by GitHub
commit 2adf3449f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -147,10 +147,6 @@ HttpRequest::Impl::Impl(std::chrono::milliseconds timeout_ms, ProgressCallback c
m_curl.get(), CURLOPT_LOW_SPEED_TIME, m_curl.get(), CURLOPT_LOW_SPEED_TIME,
static_cast<long>(std::chrono::duration_cast<std::chrono::seconds>(timeout_ms).count())); static_cast<long>(std::chrono::duration_cast<std::chrono::seconds>(timeout_ms).count()));
curl_easy_setopt(m_curl.get(), CURLOPT_LOW_SPEED_LIMIT, 1); curl_easy_setopt(m_curl.get(), CURLOPT_LOW_SPEED_LIMIT, 1);
#ifdef _WIN32
// ALPN support is enabled by default but requires Windows >= 8.1.
curl_easy_setopt(m_curl.get(), CURLOPT_SSL_ENABLE_ALPN, false);
#endif
} }
bool HttpRequest::Impl::IsValid() const bool HttpRequest::Impl::IsValid() const