Default redirect to true to save bandwidth
This commit is contained in:
parent
816af8d938
commit
90b33b590a
|
@ -71,7 +71,7 @@ $IMGPROXY_PREFIX = "https://dc1imgproxy.fly.dev/x/rs:auto:332:200:1/plain/" . ur
|
|||
$GITHUB_API_URL = "https://api.github.com/repos/$REPO/contents/$IMAGES_DIRECTORY/";
|
||||
|
||||
// whether to force a redirect to the image instead of displaying it directly
|
||||
$redirect = isset($_GET['redirect']) ? $_GET['redirect'] === "1" : false;
|
||||
$redirect = isset($_GET['redirect']) ? $_GET['redirect'] === "1" : true;
|
||||
|
||||
// if the current URL is in the form "/images/...", show the image
|
||||
if (preg_match("/\/images\/(.*)$/", $_SERVER['REQUEST_URI'], $matches)) {
|
||||
|
|
Loading…
Reference in New Issue