From b3b97ef358f9141bc1f1b3ebec799a0ad0771f7e Mon Sep 17 00:00:00 2001
From: Tom N Harris <tnharris@whoopdedo.org>
Date: Wed, 20 Jun 2012 03:11:57 -0400
Subject: [PATCH] Skip over chunk extensions that nobody uses because RFC2616
 says so

---
 inc/HTTPClient.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php
index b5e665cb1..73f5b89b4 100644
--- a/inc/HTTPClient.php
+++ b/inc/HTTPClient.php
@@ -411,7 +411,7 @@ class HTTPClient {
                         if (strlen($chunk_size) > 128) // set an abritrary limit on the size of chunks
                             throw new HTTPClientException('Allowed response size exceeded');
                     }
-                    $byte = $this->_readData($socket, 1, 'chunk');     // readtrailing \n
+                    $this->_readLine($socket, 'chunk');     // readtrailing \n
                     $chunk_size = hexdec($chunk_size);
 
                     if($this->max_bodysize && $chunk_size+strlen($r_body) > $this->max_bodysize){
-- 
GitLab