From 5b074c048dc177b88a42d3c30865fee3e3b935d0 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 1 Dec 2004 17:33:32 +0000 Subject: Port 443 is default for https, so we shouldn't put it into Host: --- ext/soap/php_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/soap/php_http.c') 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); } -- cgit v1.2.1