Skip to content

Commit

Permalink
consistency fix
Browse files Browse the repository at this point in the history
  • Loading branch information
itskenny0 committed Mar 16, 2019
1 parent 6b00b2b commit 514ce42
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dumpia.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,15 @@ private function download($folder, $urls) {
private function curlToDisk($url, $target) {
$fp = fopen($target, 'w');

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_FILE, $fp);
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
$c = curl_init($url);
curl_setopt($c, CURLOPT_FILE, $fp);
if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') curl_setopt($c, CURLOPT_SSL_VERIFYPEER, FALSE);

curl_exec($ch);
curl_exec($c);

$httpC = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$httpC = curl_getinfo($c, CURLINFO_HTTP_CODE);

curl_close($ch);
curl_close($c);
fclose($fp);

if($httpC == 200) return true;
Expand Down

0 comments on commit 514ce42

Please sign in to comment.