Don't force HTTP/1.1 connections by default.

This commit is contained in:
default 2022-12-16 12:05:01 +01:00
parent 8461fbfbcc
commit 40c748bc5b

View file

@ -103,8 +103,10 @@ d_char *xs_http_request(char *method, char *url, d_char *headers,
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5L); curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5L);
#ifdef FORCE_HTTP_1_1
/* force HTTP/1.1 */ /* force HTTP/1.1 */
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
#endif
/* obey redirections */ /* obey redirections */
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);