Skip to content

Commit

Permalink
Merge pull request #56 from richardkmiller/2014-08-28
Browse files Browse the repository at this point in the history
A couple of tiny fixes
  • Loading branch information
zuk committed Sep 2, 2014
2 parents 6a8e9f4 + 187a697 commit fcb539e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ protected function checkLastResponseForError()
if ($meta === false)
return;

$err = null;
switch ($meta['http_code']) {
case 400:
throw new Pest_BadRequest($this->processError($body));
Expand Down Expand Up @@ -360,7 +359,7 @@ public function head($url)
$curl_opts = $this->curl_opts;
$curl_opts[CURLOPT_NOBODY] = true;

$curl = $this->prepRequest($this->curl_opts, $url);
$curl = $this->prepRequest($curl_opts, $url);
$body = $this->doRequest($curl);

$body = $this->processBody($body);
Expand Down

0 comments on commit fcb539e

Please sign in to comment.