diff options
author | Dmitry Stogov <dmitry@php.net> | 2004-12-01 16:59:48 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2004-12-01 16:59:48 +0000 |
commit | ec4b6f713d3cb41cae04a24975623128722da5ee (patch) | |
tree | 0b4040a679043c25854023894e757ab5eef54021 /ext/soap/php_http.c | |
parent | 9c14e2235ce4289dbd877c7bd634e171e0e63115 (diff) | |
download | php-git-ec4b6f713d3cb41cae04a24975623128722da5ee.tar.gz |
Fixed bug #30359 (SOAP client requests have no port in "Host" field ).
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r-- | ext/soap/php_http.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index ed2813abb7..07b11eae74 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -380,6 +380,10 @@ try_again: smart_str_append_const(&soap_headers, " HTTP/1.1\r\n" "Host: "); smart_str_appends(&soap_headers, phpurl->host); + if (phpurl->port != 80) { + 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" /* |