|
|
|
@ -443,8 +443,8 @@ impl Page {
@@ -443,8 +443,8 @@ impl Page {
|
|
|
|
|
// Format response
|
|
|
|
|
let status = Status::Input; |
|
|
|
|
let title = gformat!("Input expected"); |
|
|
|
|
let description = match response.data().value() { |
|
|
|
|
Some(value) => value, |
|
|
|
|
let description = match response.data() { |
|
|
|
|
Some(data) => data.value(), |
|
|
|
|
None => &title, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -674,11 +674,14 @@ impl Page {
@@ -674,11 +674,14 @@ impl Page {
|
|
|
|
|
meta.borrow_mut().title = Some(gformat!("Redirect")); |
|
|
|
|
|
|
|
|
|
// Build gemtext message for manual redirection @TODO use template?
|
|
|
|
|
match response.data().value() { |
|
|
|
|
match response.data() { |
|
|
|
|
Some(url) => { |
|
|
|
|
content.to_text_gemini( |
|
|
|
|
&uri, |
|
|
|
|
&gformat!("# Redirect\n\nAuto-follow not implemented, click on link below to continue\n\n=> {url}") |
|
|
|
|
&gformat!( |
|
|
|
|
"# Redirect\n\nAuto-follow not implemented, click on link below to continue\n\n=> {}", |
|
|
|
|
url.value() |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
None => { |
|
|
|
|