mirror of
https://github.com/ToxicCrack/PrintABrick.git
synced 2025-05-16 12:20:09 -07:00
remoteFileExists method should accept 301 too
This commit is contained in:
parent
7a1d369984
commit
cd865cf42e
@ -22,7 +22,9 @@ abstract class BaseImageLoader implements LoaderInterface
|
||||
curl_exec($resource);
|
||||
$status = curl_getinfo($resource, CURLINFO_HTTP_CODE);
|
||||
curl_close($resource);
|
||||
|
||||
return $status === 200 ? true : false;
|
||||
if($status == 301 || $status == 200) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user