mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
enshort construction
This commit is contained in:
parent
9d806c2773
commit
f6fe910431
1 changed files with 1 additions and 4 deletions
|
|
@ -766,10 +766,7 @@ impl Page {
|
|||
UriHideFlags::FRAGMENT | UriHideFlags::QUERY
|
||||
),
|
||||
// Set follow policy based on status code
|
||||
match response.status() {
|
||||
gemini::client::response::meta::Status::PermanentRedirect => true,
|
||||
_ => false
|
||||
},
|
||||
matches!(response.status(), gemini::client::response::meta::Status::PermanentRedirect),
|
||||
)
|
||||
.set_status(Status::Redirect) // @TODO is this status really wanted?
|
||||
.set_title("Redirect");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue