diff options
author | Dmitry Stogov <dmitry@php.net> | 2004-12-01 17:33:32 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2004-12-01 17:33:32 +0000 |
commit | 5b074c048dc177b88a42d3c30865fee3e3b935d0 (patch) | |
tree | b3ccd12c53735eaafa59d80420a4bf71f773dd47 /ext/soap/php_http.c | |
parent | ec4b6f713d3cb41cae04a24975623128722da5ee (diff) | |
download | php-git-5b074c048dc177b88a42d3c30865fee3e3b935d0.tar.gz |
Port 443 is default for https, so we shouldn't put it into Host:
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r-- | ext/soap/php_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |