logo       

RE: cvs: pear /Net_URL URL.php: msg#00652

php.cvs.pear

Subject: RE: cvs: pear /Net_URL URL.php

> 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


--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise