summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/soap/php_http.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index ed2813abb7..07b11eae74 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -380,6 +380,10 @@ 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) {
+ smart_str_appendc(&soap_headers, ':');
+ smart_str_append_unsigned(&soap_headers, phpurl->port);
+ }
smart_str_append_const(&soap_headers, "\r\n"
"Connection: Keep-Alive\r\n"
/*