Browse files

Remove todo's whihc have been removed in e02eab0

and accidentally been re-added in 3e3af1f
  • Loading branch information...
1 parent 505cf3d commit ec3e7afd75d9a4bd487211289009f6a2fffe9088 @ceeram ceeram committed Dec 10, 2012
Showing with 0 additions and 10 deletions.
  1. +0 −10 lib/Cake/Network/Http/HttpSocketResponse.php
View
10 lib/Cake/Network/Http/HttpSocketResponse.php
@@ -226,27 +226,20 @@ protected function _decodeChunkedBody($body) {
$chunkSize = 0;
$hexLength = 0;
- $chunkExtensionName = '';
$chunkExtensionValue = '';
if (isset($match[0])) {
$chunkSize = $match[0];
}
if (isset($match[1])) {
$hexLength = $match[1];
}
- if (isset($match[2])) {
- $chunkExtensionName = $match[2];
- }
if (isset($match[3])) {
$chunkExtensionValue = $match[3];
}
$body = substr($body, strlen($chunkSize));
$chunkLength = hexdec($hexLength);
$chunk = substr($body, 0, $chunkLength);
- if (!empty($chunkExtensionName)) {
- // @todo See if there are popular chunk extensions we should implement
- }
$decodedBody .= $chunk;
if ($chunkLength !== 0) {
$body = substr($body, $chunkLength + strlen("\r\n"));
@@ -298,7 +291,6 @@ protected function _parseHeader($header) {
*
* @param array $header Header array containing one ore more 'Set-Cookie' headers.
* @return mixed Either false on no cookies, or an array of cookies received.
- * @todo Make this 100% RFC 2965 confirm
*/
public function parseCookies($header) {
$cookieHeader = $this->getHeader('Set-Cookie', $header);
@@ -341,7 +333,6 @@ public function parseCookies($header) {
* @param string $token Token to unescape
* @param array $chars
* @return string Unescaped token
- * @todo Test $chars parameter
*/
protected function _unescapeToken($token, $chars = null) {
$regex = '/"([' . implode('', $this->_tokenEscapeChars(true, $chars)) . '])"/';
@@ -355,7 +346,6 @@ protected function _unescapeToken($token, $chars = null) {
* @param boolean $hex true to get them as HEX values, false otherwise
* @param array $chars
* @return array Escape chars
- * @todo Test $chars parameter
*/
protected function _tokenEscapeChars($hex = true, $chars = null) {
if (!empty($chars)) {

0 comments on commit ec3e7af

Please sign in to comment.