commit 40c748b

default  ·  2022-12-16 11:05:01 +0000 UTC
parent 8461fbf
Don't force HTTP/1.1 connections by default.
1 files changed,  +2, -0
+2, -0
 1@@ -103,8 +103,10 @@ d_char *xs_http_request(char *method, char *url, d_char *headers,
 2 
 3     curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5L);
 4 
 5+#ifdef FORCE_HTTP_1_1
 6     /* force HTTP/1.1 */
 7     curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
 8+#endif
 9 
10     /* obey redirections */
11     curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);