mirror of
https://github.com/YGGverse/nexy.git
synced 2026-03-31 17:25:27 +00:00
fix var name
This commit is contained in:
parent
95f5f77d18
commit
b0e5c7769b
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(b, is_root) => {
|
Response::Directory(s, is_root) => {
|
||||||
&if is_root {
|
&if is_root {
|
||||||
self.session.template.welcome(Some(&b))
|
self.session.template.welcome(Some(&s))
|
||||||
} else {
|
} else {
|
||||||
self.session.template.index(Some(&b))
|
self.session.template.index(Some(&s))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Response::InternalServerError(e) => {
|
Response::InternalServerError(e) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue