mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-24 00:23:38 +00:00
Don't force HTTP/1.1 connections by default.
This commit is contained in:
parent
8461fbfbcc
commit
40c748bc5b
1 changed files with 2 additions and 0 deletions
|
@ -103,8 +103,10 @@ d_char *xs_http_request(char *method, char *url, d_char *headers,
|
|||
|
||||
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5L);
|
||||
|
||||
#ifdef FORCE_HTTP_1_1
|
||||
/* force HTTP/1.1 */
|
||||
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
|
||||
#endif
|
||||
|
||||
/* obey redirections */
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||
|
|
Loading…
Reference in a new issue