summaryrefslogtreecommitdiff
path: root/src/couch/priv/couch_js/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/couch/priv/couch_js/http.c')
-rw-r--r--src/couch/priv/couch_js/http.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/couch/priv/couch_js/http.c b/src/couch/priv/couch_js/http.c
index c4b389659..574bdc412 100644
--- a/src/couch/priv/couch_js/http.c
+++ b/src/couch/priv/couch_js/http.c
@@ -450,6 +450,9 @@ go(JSContext* cx, JSObject* obj, HTTPData* http, char* body, size_t bodylen)
curl_easy_setopt(HTTP_HANDLE, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
curl_easy_setopt(HTTP_HANDLE, CURLOPT_ERRORBUFFER, ERRBUF);
curl_easy_setopt(HTTP_HANDLE, CURLOPT_COOKIEFILE, "");
+#if LIBCURL_VERSION_NUM >= 0x074000
+ curl_easy_setopt(HTTP_HANDLE, CURLOPT_HTTP09_ALLOWED, 1L);
+#endif
curl_easy_setopt(HTTP_HANDLE, CURLOPT_USERAGENT,
"CouchHTTP Client - Relax");
}