Port 443 is default for https, so we shouldn't put it into Host:

This commit is contained in:
Dmitry Stogov 2004-12-01 17:33:32 +00:00
parent ec4b6f713d
commit 5b074c048d

View 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);
}