From: Dmitry Stogov Date: Wed, 1 Dec 2004 16:59:48 +0000 (+0000) Subject: Fixed bug #30359 (SOAP client requests have no port in "Host" field ). X-Git-Tag: RELEASE_0_2~599 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec4b6f713d3cb41cae04a24975623128722da5ee;p=php Fixed bug #30359 (SOAP client requests have no port in "Host" field ). --- 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" /*