summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2004-12-01 16:59:48 +0000
committerDmitry Stogov <dmitry@php.net>2004-12-01 16:59:48 +0000
commitec4b6f713d3cb41cae04a24975623128722da5ee (patch)
tree0b4040a679043c25854023894e757ab5eef54021 /ext/soap/php_http.c
parent9c14e2235ce4289dbd877c7bd634e171e0e63115 (diff)
downloadphp-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.c4
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"
/*