Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/HttpClient-resetParameters' of https://github.co…
Browse files Browse the repository at this point in the history
…m/sasezaki/zf2 into hotfix/rest-client-reset_parameters
  • Loading branch information
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -710,9 +710,10 @@ protected function calcAuthDigest($user, $password, $type = self::AUTH_BASIC, $d
}
return $response;
}

/**
* Reset all the HTTP parameters (auth,cookies,request, response, etc)
*
* @return Client
*/
public function resetParameters()
{
Expand All @@ -726,6 +727,8 @@ public function resetParameters()
$this->response = null;

$this->setUri($uri);

return $this;
}

/**
Expand Down

0 comments on commit e0b6d8c

Please sign in to comment.