|
|
@ -766,10 +766,7 @@ impl Page { |
|
|
|
UriHideFlags::FRAGMENT | UriHideFlags::QUERY |
|
|
|
UriHideFlags::FRAGMENT | UriHideFlags::QUERY |
|
|
|
), |
|
|
|
), |
|
|
|
// Set follow policy based on status code
|
|
|
|
// Set follow policy based on status code
|
|
|
|
match response.status() { |
|
|
|
matches!(response.status(), gemini::client::response::meta::Status::PermanentRedirect), |
|
|
|
gemini::client::response::meta::Status::PermanentRedirect => true, |
|
|
|
|
|
|
|
_ => false |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
.set_status(Status::Redirect) // @TODO is this status really wanted?
|
|
|
|
.set_status(Status::Redirect) // @TODO is this status really wanted?
|
|
|
|
.set_title("Redirect"); |
|
|
|
.set_title("Redirect"); |
|
|
|