]> granicus.if.org Git - php/commitdiff
Port 443 is default for https, so we shouldn't put it into Host:
authorDmitry Stogov <dmitry@php.net>
Wed, 1 Dec 2004 17:33:19 +0000 (17:33 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 1 Dec 2004 17:33:19 +0000 (17:33 +0000)
ext/soap/php_http.c

index 07b11eae74fef16fcb96125fdc4f58a3a2f0a90d..0c4faf7a71771421ab345eaa136dd78954c89b51 100644 (file)
@@ -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);
                }