From 47c6847f1b231cd6a63e5a325b3c630197e426f6 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 8 Mar 2021 09:32:50 +0100 Subject: [PATCH] add CURLOPT_HTTP09_ALLOWED --- src/php_http_client_curl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index 82c6226..b7bb8c1 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -1409,6 +1409,9 @@ static void php_http_curle_options_init(php_http_options_t *registry) /* http protocol version */ php_http_option_register(registry, ZEND_STRL("protocol"), CURLOPT_HTTP_VERSION, IS_LONG); +#if PHP_HTTP_CURL_VERSION(7,64,0) + php_http_option_register(registry, ZEND_STRL("http09_allowed"), CURLOPT_HTTP09_ALLOWED, _IS_BOOL); +#endif /* timeouts */ if ((opt = php_http_option_register(registry, ZEND_STRL("timeout"), CURLOPT_TIMEOUT_MS, IS_DOUBLE))) { -- 2.30.2