cvs: php-src /ext/soap php_http.c

From: Date: Wed, 01 Dec 2004 17:33:32 +0000
Subject: cvs: php-src /ext/soap php_http.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-29377@lists.php.net to get a copy of this message
dmitry Wed Dec 1 12:33:32 2004 EDT Modified files: /php-src/ext/soap php_http.c Log: Port 443 is default for https, so we shouldn't put it into Host: http://cvs.php.net/diff.php/php-src/ext/soap/php_http.c?r1=1.58&r2=1.59&ty=u Index: php-src/ext/soap/php_http.c diff -u php-src/ext/soap/php_http.c:1.58 php-src/ext/soap/php_http.c:1.59 --- php-src/ext/soap/php_http.c:1.58 Wed Dec 1 11:59:48 2004 +++ php-src/ext/soap/php_http.c Wed Dec 1 12:33:32 2004 @@ -17,7 +17,7 @@ | Dmitry Stogov <dmitry@zend.com> | +----------------------------------------------------------------------+ */ -/* $Id: php_http.c,v 1.58 2004/12/01 16:59:48 dmitry Exp $ */ +/* $Id: php_http.c,v 1.59 2004/12/01 17:33:32 dmitry Exp $ */ #include "php_soap.h" #include "ext/standard/base64.h" @@ -380,7 +380,7 @@ 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); }

« previous php.cvs (#29377) next »