From: Michael Wallner Date: Tue, 2 Mar 2021 09:26:03 +0000 (+0100) Subject: add CURLOPT_HAPROXYPROTOCOL X-Git-Tag: v4.1.0~24 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=f84a41f0f7abc64088f87a469e5dfc95157e9fb0;ds=sidebyside add CURLOPT_HAPROXYPROTOCOL --- diff --git a/src/php_http_client_curl.c b/src/php_http_client_curl.c index 1dfeaa9..8f5b2d5 100644 --- a/src/php_http_client_curl.c +++ b/src/php_http_client_curl.c @@ -1219,7 +1219,11 @@ static void php_http_curle_options_init(php_http_options_t *registry) opt->flags |= PHP_HTTP_CURLE_OPTION_CHECK_STRLEN; } #endif +#if PHP_HTTP_CURL_VERSION(7,60,0) + php_http_option_register(registry, ZEND_STRL("haproxy_protocol"), CURLOPT_HAPROXYPROTOCOL, _IS_BOOL); +#endif + /* unix sockets */ #if PHP_HTTP_CURL_VERSION(7,40,0) if (PHP_HTTP_CURL_FEATURE(CURL_VERSION_UNIX_SOCKETS)) { if ((opt = php_http_option_register(registry, ZEND_STRL("unix_socket_path"), CURLOPT_UNIX_SOCKET_PATH, IS_STRING))) {