From: Dmitry Stogov Date: Wed, 1 Dec 2004 17:33:32 +0000 (+0000) Subject: Port 443 is default for https, so we shouldn't put it into Host: X-Git-Tag: RELEASE_0_2~598 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b074c048dc177b88a42d3c30865fee3e3b935d0;p=php Port 443 is default for https, so we shouldn't put it into Host: --- diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 07b11eae74..0c4faf7a71 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -380,7 +380,7 @@ 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) { + if (phpurl->port != (use_ssl?443:80)) { smart_str_appendc(&soap_headers, ':'); smart_str_append_unsigned(&soap_headers, phpurl->port); }