mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
allow external redirection (as can't find this restriction in gemini specification)
This commit is contained in:
parent
a4f3fe449a
commit
c8fee68599
1 changed files with 2 additions and 1 deletions
|
|
@ -373,7 +373,7 @@ fn handle(
|
|||
page.set_progress(0.0);
|
||||
page.set_title(&status.title());
|
||||
redirects.replace(0); // reset
|
||||
|
||||
/* @TODO can't find that in specification:
|
||||
// Disallow external redirection by protocol restrictions
|
||||
} else if "gemini" != target.scheme()
|
||||
|| uri.port() != target.port()
|
||||
|
|
@ -383,6 +383,7 @@ fn handle(
|
|||
page.set_progress(0.0);
|
||||
page.set_title(&status.title());
|
||||
redirects.replace(0); // reset
|
||||
*/
|
||||
// Valid
|
||||
} else {
|
||||
if matches!(response.meta.status, Status::PermanentRedirect) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue