diff options
author | Dave Cottlehuber <dch@apache.org> | 2019-11-10 23:57:53 +0000 |
---|---|---|
committer | Dave Cottlehuber <dch@apache.org> | 2019-11-11 08:53:57 +0000 |
commit | 311356ad7238485af396d5341c041c912bbe7302 (patch) | |
tree | 9ec6aa1603d13e9f47064b435a6167687bb81f6d | |
parent | ec23c342b722db289c3dd54fc61221ae26dec7b5 (diff) | |
download | couchdb-jenkins-curl-09-test.tar.gz |
Enable couchjs to accept HTTP 0.9 responsesjenkins-curl-09-test
Since curl 7.66.0, HTTP/0.9 is disabled by default. This is present in
FreeBSD's latest ports tree as of 12.1-RELEASE, and breaks a number of
our couchjs-related tests.
As this libcurl update will propagate through the open source space-time
continuum, pro-actively un-break future couchjs libcurl.
-rw-r--r-- | src/couch/priv/couch_js/http.c | 3 |
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"); } |