1
1
Fork 0

Add redirect for fetch

This commit is contained in:
Philipp Holzer 2019-05-03 15:08:50 +02:00
parent 2b4c710e3f
commit 21aa82e064
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

View file

@ -44,10 +44,7 @@ class Fetch extends BaseModule
if (Strings::normaliseLink($host) != Strings::normaliseLink($app->getBaseURL())) {
$location = $host . "/fetch/" . $app->argv[1] . "/" . urlencode($guid);
header("HTTP/1.1 301 Moved Permanently");
header("Location:" . $location);
exit();
$app->redirect($location);
}
}