mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-09-03 10:22:21 +00:00
remove header value update as the nex is header-less protocol
This commit is contained in:
parent
53348d12b6
commit
da533d8826
@ -43,15 +43,14 @@ impl Nex {
|
|||||||
|
|
||||||
if path.is_empty() {
|
if path.is_empty() {
|
||||||
let r = format!("{uri}/"); // auto-append trailing slash to the root locations
|
let r = format!("{uri}/"); // auto-append trailing slash to the root locations
|
||||||
{
|
self.page.navigation.request.info.replace(
|
||||||
let mut i = self.page.navigation.request.info.take();
|
|
||||||
i.set_header(Some(r.clone()));
|
|
||||||
self.page
|
self.page
|
||||||
.navigation
|
.navigation
|
||||||
.request
|
.request
|
||||||
.info
|
.info
|
||||||
.replace(i.into_permanent_redirect());
|
.take()
|
||||||
}
|
.into_permanent_redirect(),
|
||||||
|
);
|
||||||
self.page.navigation.set_request(&r);
|
self.page.navigation.set_request(&r);
|
||||||
self.page.item_action.load.activate(Some(&r), false, true);
|
self.page.item_action.load.activate(Some(&r), false, true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user