diff options
author | default <nobody@localhost> | 2022-12-17 18:52:57 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-12-17 18:52:57 +0100 |
commit | 97e040e0487cf3b23bc1109f10752410b838c8c8 (patch) | |
tree | dbc9a7f7ad79e4e8253cfba55d02c9dfce6f2c44 /xs_curl.h | |
parent | d8b799195035f8444d8d0be1a1c0f08719ae84bd (diff) |
Backport from xs.
Diffstat (limited to 'xs_curl.h')
-rw-r--r-- | xs_curl.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -101,7 +101,9 @@ d_char *xs_http_request(char *method, char *url, d_char *headers, curl_easy_setopt(curl, CURLOPT_URL, url); +#ifdef FORCE_TIMEOUT curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5L); +#endif #ifdef FORCE_HTTP_1_1 /* force HTTP/1.1 */ |