Permalink
Browse files

$httpCode variable was not set. Let's use $responseInfo['http_code'] …

…instead :)
  • Loading branch information...
1 parent d0c7bb8 commit cec56fb23f73c45794cd3ba915cafff31983b3ed @justnorris justnorris 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 cec56fb

Please sign in to comment.