projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
092ee98
)
add CURLOPT_HTTP09_ALLOWED
author
Michael Wallner
<mike@php.net>
Mon, 8 Mar 2021 08:32:50 +0000
(09:32 +0100)
committer
Michael Wallner
<mike@php.net>
Mon, 8 Mar 2021 08:32:50 +0000
(09:32 +0100)
src/php_http_client_curl.c
patch
|
blob
|
history
diff --git
a/src/php_http_client_curl.c
b/src/php_http_client_curl.c
index 82c6226802cf028cd29dc49dfdcc8bf8b9ac6be4..b7bb8c12def005568023c3da79dc486ca530797e 100644
(file)
--- 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))) {