1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00

Merge branch 'master' of github.com:actix/examples

This commit is contained in:
Nikolay Kim 2018-04-18 16:47:53 -07:00
commit 0ae5ae7bc6

View File

@ -106,7 +106,7 @@ fn main() {
}))
.resource("/error", |r| r.f(|req| {
error::InternalError::new(
io::Error::new(io::ErrorKind::Other, "test"), StatusCode::OK)
io::Error::new(io::ErrorKind::Other, "test"), StatusCode::INTERNAL_SERVER_ERROR)
}))
// static files
.handler("/static", fs::StaticFiles::new("static"))