mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-09-10 22:11:52 +00:00
allow external redirection (as can't find this restriction in gemini specification)
This commit is contained in:
parent
a4f3fe449a
commit
c8fee68599
@ -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…
x
Reference in New Issue
Block a user