RE: [PEAR-CVS] cvs: pear /Net_URL URL.php

From: Date: Sun, 29 Sep 2002 10:54:32 +0000
Subject: RE: [PEAR-CVS] cvs: pear /Net_URL URL.php
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-6749@lists.php.net to get a copy of this message
> Sorry about that. Do you have a problem with the patches? I can't seem to reproduce any error with the URL you supplied before the patch is applied. > I > also need > to fix HTTP_Request to send ports in the host header per below. > Shane Ok I'll add this in., thanks. > --- 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'); -- Richard Heyes V-webmail - http://www.v-webmail.co.uk

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