From 2cbece678495273aa5504b1362b5f252309dc7e9 Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Tue, 14 Dec 2010 11:11:36 -0200 Subject: [PATCH] Removed the lineBreak attribute, this is fixed in RFC. --- cake/libs/http_socket.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/cake/libs/http_socket.php b/cake/libs/http_socket.php index cc28ae5fd..a521ea9c5 100644 --- a/cake/libs/http_socket.php +++ b/cake/libs/http_socket.php @@ -104,13 +104,6 @@ class HttpSocket extends CakeSocket { ) ); -/** - * String that represents a line break. - * - * @var string - */ - public $lineBreak = "\r\n"; - /** * Authentication settings * @@ -809,7 +802,7 @@ class HttpSocket extends CakeSocket { if (!$this->quirksMode && $request['uri'] === '*' && !in_array($request['method'], $asteriskMethods)) { throw new Exception(sprintf(__('HttpSocket::_buildRequestLine - The "*" asterisk character is only allowed for the following methods: %s. Activate quirks mode to work outside of HTTP/1.1 specs.'), join(',', $asteriskMethods))); } - return $request['method'] . ' ' . $request['uri'] . ' ' . $versionToken . $this->lineBreak; + return $request['method'] . ' ' . $request['uri'] . ' ' . $versionToken . "\r\n"; } /** @@ -862,7 +855,7 @@ class HttpSocket extends CakeSocket { $contents = preg_replace("/\r\n(?![\t ])/", "\r\n ", $content); $field = $this->_escapeToken($field); - $returnHeader .= $field . ': ' . $contents . $this->lineBreak; + $returnHeader .= $field . ': ' . $contents . "\r\n"; } } return $returnHeader;