Skip to content
Permalink
Browse files

Minor optimization in HttpSocket::reset().

  • Loading branch information...
jrbasso committed Dec 6, 2010
1 parent 151ea28 commit 33bb253dfa5c8d10a0774110ed72b8964b2e80b8
Showing with 1 addition and 3 deletions.
  1. +1 −3 cake/libs/http_socket.php
@@ -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;
}

0 comments on commit 33bb253

Please sign in to comment.
You can’t perform that action at this time.