]> 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:48 +0000 (16:59 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 1 Dec 2004 16:59:48 +0000 (16:59 +0000)
ext/soap/php_http.c

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"
 /*