From a3d2a4da0c5baecf7f66f44c02160033cb004c69 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 1 Dec 2004 17:33:19 +0000 Subject: [PATCH] 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(-) 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); } -- 2.40.0