Fw: Small bug in HTTP_Request Class
| From: | Richard Heyes | Date: | Sat, 18 Oct 2003 10:12:32 +0000 |
| Subject: | Fw: Small bug in HTTP_Request Class | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-22816@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "rin" <rin@starlink.ru>
To: <richard@phpguru.org>
Sent: Friday, October 17, 2003 1:53 PM
Subject: Small bug in HTTP_Request Class
>
> Hi!
>
> Small bug in HTTP_Request Class ($Id: Request.php,v 1.22 2003/01/30
> 14:23:13 richard Exp $)
>
> if choose HTTP_REQUEST_METHOD_HEAD and response gzip supported (Content-
> Encoding: gzip) then
>
> Warning: gzinflate(): buffer error in c:\usr\local\pear\HTTP\Request.php
on
> line 799
>
> valid code of part:
>
> // If response was compressed using gzip, uncompress it
> if (@$this->_headers['content-encoding'] == 'gzip' &&
$this->_body)
> {
> $this->_body = gzinflate(substr($this->_body, 10));
> }
>
> --
> Rinat, Russia
>