Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from Methemer/patch-1

$httpCode variable was not set
  • Loading branch information...
commit 082a5af55b7e47e44d7c9d083d9bdf2ea9882342 2 parents d0c7bb8 + cec56fb
@joshdick authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  miniProxy.php
View
2  miniProxy.php
@@ -43,7 +43,7 @@ function getFile($fileLoc)
$data = curl_exec($ch);
$responseInfo = curl_getinfo($ch);
if ($responseInfo['http_code'] != 200) {
- $data = "Error: Server at " . $fileLoc . " sent HTTP response code " . $httpCode . ".";
+ $data = "Error: Server at " . $fileLoc . " sent HTTP response code " . $responseInfo['http_code'] . ".";
}
curl_close($ch);
return array("data" => $data, "contentType" => $responseInfo['content_type']);
Please sign in to comment.
Something went wrong with that request. Please try again.