diff options
author | Tom N Harris <tnharris@whoopdedo.org> | 2012-06-20 03:11:57 -0400 |
---|---|---|
committer | Tom N Harris <tnharris@whoopdedo.org> | 2012-06-20 03:11:57 -0400 |
commit | b3b97ef358f9141bc1f1b3ebec799a0ad0771f7e (patch) | |
tree | e9ea6bbd59f603cb5e3de602087a360ae1a7c6b2 /inc/HTTPClient.php | |
parent | 769b429a77368df14e3753f624466f658e971df6 (diff) | |
download | dokuwiki-b3b97ef358f9141bc1f1b3ebec799a0ad0771f7e.tar.gz dokuwiki-b3b97ef358f9141bc1f1b3ebec799a0ad0771f7e.zip |
Skip over chunk extensions that nobody uses because RFC2616 says so
Diffstat (limited to 'inc/HTTPClient.php')
-rw-r--r-- | inc/HTTPClient.php | 2 |
1 files changed, 1 insertions, 1 deletions
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){ |