]> granicus.if.org Git - php/commitdiff
Fixed bug #30359 (SOAP client requests have no port in "Host" field ).
authorDmitry Stogov <dmitry@php.net>
Wed, 1 Dec 2004 16:59:23 +0000 (16:59 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 1 Dec 2004 16:59:23 +0000 (16:59 +0000)
NEWS
ext/soap/php_http.c

diff --git a/NEWS b/NEWS
index b8ba25bd159db1382904adeca1ac141d6dc3cb21..b45de309c8b401ad259ff3d5514786a8e1ed407c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -39,6 +39,8 @@ PHP                                                                        NEWS
 - Fixed bug #30375 (cal_info() does not work without a parameter). (Ilia)
 - Fixed bug #30362 (stream_get_line() not handling end string correctly).
   (Ilia)
+- Fixed bug #30359 (SOAP client requests have no port in "Host" field ).
+  (Dmitry)
 - Fixed bug #30356 (str_ireplace() does not work on all strings). (Ilia)
 - Fixed bug #30344 (Reflection::getModifierNames() returns too long strings).
   (Marcus)
index ed2813abb795839c1627a1abcf084ada93f8671a..07b11eae74fef16fcb96125fdc4f58a3a2f0a90d 100644 (file)
@@ -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"
 /*