Permalink
Browse files

Merge pull request #1 from Methemer/patch-1

$httpCode variable was not set
  • Loading branch information...
2 parents d0c7bb8 + cec56fb commit 082a5af55b7e47e44d7c9d083d9bdf2ea9882342 @joshdick committed Aug 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 miniProxy.php
View
@@ -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']);

0 comments on commit 082a5af

Please sign in to comment.