mirror of
https://github.com/YGGverse/nexy.git
synced 2026-03-31 17:25:27 +00:00
update reference definition
This commit is contained in:
parent
b0e5c7769b
commit
d78f92d1cf
1 changed files with 3 additions and 3 deletions
|
|
@ -60,11 +60,11 @@ impl Connection {
|
||||||
fn response(&mut self, response: Response) {
|
fn response(&mut self, response: Response) {
|
||||||
let bytes = match response {
|
let bytes = match response {
|
||||||
Response::File(b) => b,
|
Response::File(b) => b,
|
||||||
Response::Directory(s, is_root) => {
|
Response::Directory(ref s, is_root) => {
|
||||||
&if is_root {
|
&if is_root {
|
||||||
self.session.template.welcome(Some(&s))
|
self.session.template.welcome(Some(s))
|
||||||
} else {
|
} else {
|
||||||
self.session.template.index(Some(&s))
|
self.session.template.index(Some(s))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Response::InternalServerError(e) => {
|
Response::InternalServerError(e) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue