https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b4c710
)
Add redirect for fetch
author
Philipp Holzer
<admin@philipp.info>
Fri, 3 May 2019 13:08:50 +0000
(15:08 +0200)
committer
Philipp Holzer
<admin@philipp.info>
Fri, 3 May 2019 13:08:50 +0000
(15:08 +0200)
src/Module/Diaspora/Fetch.php
patch
|
blob
|
history
diff --git
a/src/Module/Diaspora/Fetch.php
b/src/Module/Diaspora/Fetch.php
index
e6f94a9
..
46d9388
100644
(file)
--- a/
src/Module/Diaspora/Fetch.php
+++ b/
src/Module/Diaspora/Fetch.php
@@
-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);
}
}