Skip to content

Commit

Permalink
Fix issue #48
Browse files Browse the repository at this point in the history
  • Loading branch information
didiatworkz committed Oct 22, 2020
1 parent ad4daba commit 73861d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/php/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function checkURL($url){
$data = curl_exec($ch);
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if(($httpcode >= 200 && $httpcode < 300) || $httpcode == 401) return true;
if(($httpcode >= 200 && $httpcode < 300) || $httpcode == 301 || $httpcode == 401) return true;
else return false;
}

Expand Down
2 changes: 1 addition & 1 deletion assets/php/player.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function checkAddress($ip){
$data = curl_exec($ch);
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if(($httpcode>=200 && $httpcode<300) || $httpcode==401) return true;
if(($httpcode >= 200 && $httpcode < 300) || $httpcode == 301 || $httpcode == 401) return true;
else return false;
}

Expand Down

0 comments on commit 73861d0

Please sign in to comment.