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:
d5f6bd4
)
rfc compliant user agent; fix bug #67528
author
Michael Wallner
<mike@php.net>
Wed, 9 Jul 2014 18:32:36 +0000
(20:32 +0200)
committer
Michael Wallner
<mike@php.net>
Wed, 9 Jul 2014 18:32:36 +0000
(20:32 +0200)
php_http_client_curl.c
patch
|
blob
|
history
diff --git
a/php_http_client_curl.c
b/php_http_client_curl.c
index 418a4c666504ddabd2fca3b21a3638795118a3e9..501c2521e7aff2acd3773d71740c7731195c8cb6 100644
(file)
--- a/
php_http_client_curl.c
+++ b/
php_http_client_curl.c
@@
-1103,7
+1103,11
@@
static void php_http_curle_options_init(php_http_options_t *registry TSRMLS_DC)
/* useragent */
if ((opt = php_http_option_register(registry, ZEND_STRL("useragent"), CURLOPT_USERAGENT, IS_STRING))) {
/* don't check strlen, to allow sending no useragent at all */
- ZVAL_STRING(&opt->defval, "PECL::HTTP/" PHP_PECL_HTTP_VERSION " (PHP/" PHP_VERSION ")", 0);
+ ZVAL_STRING(&opt->defval,
+ "PECL_HTTP/" PHP_PECL_HTTP_VERSION " "
+ "PHP/" PHP_VERSION " "
+ "libcurl/" LIBCURL_VERSION
+ , 0);
}
/* resume */