diff options
| author | 2022-12-16 12:05:01 +0100 | |
|---|---|---|
| committer | 2022-12-16 12:05:01 +0100 | |
| commit | 40c748bc5b3c7463b306c6e58d1075d85f3c40d8 (patch) | |
| tree | 78095d0dddccb7c9bb67543dfd9f5490d14cd3ac /xs_curl.h | |
| parent | Log the actor request. (diff) | |
| download | penes-snac2-40c748bc5b3c7463b306c6e58d1075d85f3c40d8.tar.gz penes-snac2-40c748bc5b3c7463b306c6e58d1075d85f3c40d8.tar.xz penes-snac2-40c748bc5b3c7463b306c6e58d1075d85f3c40d8.zip | |
Don't force HTTP/1.1 connections by default.
Diffstat (limited to 'xs_curl.h')
| -rw-r--r-- | xs_curl.h | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -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); |