mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-09 01:18:35 +03:00
Merge pull request #2886 from daissi/wip/daissi/disable-http2
ostree-fetcher-curl: explicitly use HTTP1.1 when HTTP2 is disabled
This commit is contained in:
commit
95f2c72c9f
@ -879,6 +879,12 @@ initiate_next_curl_request (FetcherRequest *req, GTask *task)
|
||||
#endif
|
||||
}
|
||||
|
||||
if (self->config_flags & OSTREE_FETCHER_FLAGS_DISABLE_HTTP2)
|
||||
{
|
||||
rc = curl_easy_setopt (req->easy, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
|
||||
g_assert_cmpint (rc, ==, CURLM_OK);
|
||||
}
|
||||
|
||||
rc = curl_easy_setopt (req->easy, CURLOPT_WRITEFUNCTION, write_cb);
|
||||
g_assert_cmpint (rc, ==, CURLM_OK);
|
||||
rc = curl_easy_setopt (req->easy, CURLOPT_HEADERFUNCTION, response_header_cb);
|
||||
|
Loading…
Reference in New Issue
Block a user