Skip to content

Commit

Permalink
Default redirect to true to save bandwidth
Browse files Browse the repository at this point in the history
  • Loading branch information
DenverCoder1 authored Dec 17, 2023
1 parent 816af8d commit 90b33b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function displayImage($url, $userAgent, $redirect)
$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)) {
Expand Down

1 comment on commit 90b33b5

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for minimalistic-wallpaper-collection ready!

✅ Preview
https://minimalistic-wallpaper-collection-b10eksrwa-denvercoder1.vercel.app

Built with commit 90b33b5.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.