mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
change ns location
This commit is contained in:
parent
23eca5a8bc
commit
ca22d9b315
1 changed files with 9 additions and 12 deletions
|
|
@ -189,6 +189,15 @@ impl Page {
|
|||
todo!()
|
||||
}
|
||||
"gemini" => {
|
||||
// Define local NS
|
||||
use gemini::client::{
|
||||
connection::Input,
|
||||
response::{
|
||||
header::{Mime as ResponseMime, Status as ResponseStatus},
|
||||
Response,
|
||||
},
|
||||
};
|
||||
|
||||
// Get host
|
||||
let host = match uri.host() {
|
||||
Some(host) => host,
|
||||
|
|
@ -229,18 +238,6 @@ impl Page {
|
|||
Some(&cancellable.clone()),
|
||||
move |o| match o {
|
||||
Ok(_) => {
|
||||
// Define local namespace
|
||||
use gemini::client::{
|
||||
connection::Input,
|
||||
response::{
|
||||
header::{
|
||||
Mime as ResponseMime,
|
||||
Status as ResponseStatus
|
||||
},
|
||||
Response,
|
||||
}
|
||||
};
|
||||
|
||||
// Update page status
|
||||
meta.borrow_mut().status = Some(Status::Request);
|
||||
meta.borrow_mut().description = Some(gformat!("Request data from {host}.."));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue