summaryrefslogtreecommitdiff
path: root/xs_curl.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-12-16 12:05:01 +0100
committerdefault <nobody@localhost>2022-12-16 12:05:01 +0100
commit40c748bc5b3c7463b306c6e58d1075d85f3c40d8 (patch)
tree78095d0dddccb7c9bb67543dfd9f5490d14cd3ac /xs_curl.h
parent8461fbfbccea4f716505b25a2b3fcaddf0a83ee4 (diff)
Don't force HTTP/1.1 connections by default.
Diffstat (limited to 'xs_curl.h')
-rw-r--r--xs_curl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xs_curl.h b/xs_curl.h
index d024379..386fe8b 100644
--- a/xs_curl.h
+++ b/xs_curl.h
@@ -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);