summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
103 103
104 curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5L); 104 curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5L);
105 105
106#ifdef FORCE_HTTP_1_1
106 /* force HTTP/1.1 */ 107 /* force HTTP/1.1 */
107 curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 108 curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
109#endif
108 110
109 /* obey redirections */ 111 /* obey redirections */
110 curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); 112 curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);