diff options
author | SVN Migration <svn@php.net> | 2006-04-20 21:11:30 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2006-04-20 21:11:30 +0000 |
commit | 109496d8b2e5af46a97359e922e4967165a29e90 (patch) | |
tree | d5063e4b1c2edd0648471c77df40e05ce6d2190f /ext/soap/php_http.c | |
parent | 50e1a51e5cad146ff62171339298d0a16810427e (diff) | |
download | php-git-php-5.1.3RC3.tar.gz |
This commit was manufactured by cvs2svn to create tag 'php_5_1_3RC3'.php-5.1.3RC3
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r-- | ext/soap/php_http.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index e70a006dcb..34e55b2bf3 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -416,22 +416,13 @@ try_again: smart_str_appendc(&soap_headers, ':'); smart_str_append_unsigned(&soap_headers, phpurl->port); } - smart_str_append_const(&soap_headers, "\r\n" - "Connection: Keep-Alive\r\n"); + smart_str_append_const(&soap_headers, "\r\n" + "Connection: Keep-Alive\r\n" /* "Connection: close\r\n" "Accept: text/html; text/xml; text/plain\r\n" */ - if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_user_agent", sizeof("_user_agent"), (void **)&tmp) == SUCCESS && - Z_TYPE_PP(tmp) == IS_STRING) { - if (Z_STRLEN_PP(tmp) > 0) { - smart_str_append_const(&soap_headers, "User-Agent: "); - smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); - smart_str_append_const(&soap_headers, "\r\n"); - } - } else{ - smart_str_append_const(&soap_headers, "User-Agent: PHP-SOAP/"PHP_VERSION"\r\n"); - } + "User-Agent: PHP SOAP 0.1\r\n"); smart_str_append(&soap_headers, &soap_headers_z); smart_str_free(&soap_headers_z); |