mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 09:42:40 +01:00
fix guide
This commit is contained in:
parent
04515e4697
commit
1107fdec9d
@ -256,8 +256,7 @@ fn index(req: HttpRequest) -> Result<Box<Future<Item=HttpResponse, Error=Error>>
|
|||||||
Ok(Box::new(
|
Ok(Box::new(
|
||||||
result(HttpResponse::Ok()
|
result(HttpResponse::Ok()
|
||||||
.content_type("text/html")
|
.content_type("text/html")
|
||||||
.body(format!("Hello!"))))
|
.body(format!("Hello!")))))
|
||||||
.responder())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user