Minor optimization in HttpSocket::reset().

This commit is contained in:
Juan Basso 2010-12-06 03:56:16 -02:00
parent 151ea2804f
commit 33bb253dfa

View file

@ -1120,13 +1120,11 @@ class HttpSocket extends CakeSocket {
if (empty($initalState)) {
$initalState = get_class_vars(__CLASS__);
}
if ($full == false) {
if (!$full) {
$this->request = $initalState['request'];
$this->response = $initalState['response'];
return true;
}
$this->_auth = array();
$this->_proxy = array();
parent::reset($initalState);
return true;
}