Skip to content

Commit

Permalink
Minor optimization in HttpSocket::reset().
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Dec 6, 2010
1 parent 151ea28 commit 33bb253
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cake/libs/http_socket.php
Expand Up @@ -1120,13 +1120,11 @@ public function reset($full = true) {
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;
}
Expand Down

0 comments on commit 33bb253

Please sign in to comment.