1
0
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:
Daniel 2020-03-20 08:30:56 +01:00
parent 7a1d369984
commit cd865cf42e

View File

@ -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;
}
}