Re: cvs: pear /Net_URL URL.php

From: Date: Sun, 29 Sep 2002 01:17:51 +0000
Subject: Re: cvs: pear /Net_URL URL.php
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-6742@lists.php.net to get a copy of this message
Sorry about that. Do you have a problem with the patches? I also need to fix HTTP_Request to send ports in the host header per below. Shane --- Request.php 26 Sep 2002 12:18:27 -0000 1.16 +++ Request.php 29 Sep 2002 01:16:14 -0000 @@ -189,7 +189,8 @@
         // Host header
         if (HTTP_REQUEST_HTTP_VER_1_1 == $this->_http) {
-            $this->addHeader('Host', $this->_url->host);
+            $host = $this->_url->host.($this->_url->port != 80?':'.$this->_url->port:'');
+            $this->addHeader('Host', $host);
 	        if (extension_loaded('zlib')) {
 	            $this->addHeader('Accept-Encoding', 'gzip');


« previous php.pear.cvs (#6742) next »