Skip to content

Commit 85e037c

Browse files
Coldwingslihuiba
authored andcommitted
Force libcurl using http/1.1 since photon wrapper does not support using http/2
1 parent 27e9c71 commit 85e037c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

net/curl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ class cURL {
242242
setopt(CURLOPT_ERRORBUFFER, m_errmsg);
243243
setopt(CURLOPT_NOSIGNAL, 1L);
244244
setopt(CURLOPT_TCP_NODELAY, 1L);
245+
setopt(CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
245246
m_errmsg[0] = '\0';
246247
}
247248
~cURL() { curl_easy_cleanup(m_curl); }

0 commit comments

Comments
 (0)