mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[curl] Try HTTP3
Does not work for me.
This commit is contained in:
parent
502d726580
commit
fc6f1278eb
@ -198,6 +198,7 @@ do_http(struct connection *conn)
|
|||||||
set_connection_state(conn, connection_state(S_TRANS));
|
set_connection_state(conn, connection_state(S_TRANS));
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, u.source);
|
curl_easy_setopt(curl, CURLOPT_URL, u.source);
|
||||||
curl_easy_setopt(curl, CURLOPT_NOBODY, 0L);
|
curl_easy_setopt(curl, CURLOPT_NOBODY, 0L);
|
||||||
|
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, (long)CURL_HTTP_VERSION_3);
|
||||||
|
|
||||||
if (http->post_buffer) {
|
if (http->post_buffer) {
|
||||||
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, http->post_buffer);
|
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, http->post_buffer);
|
||||||
|
Loading…
Reference in New Issue
Block a user