mirror of
https://github.com/actix/actix-web.git
synced 2024-11-25 19:11:10 +00:00
fix doc test
This commit is contained in:
parent
68cd853aa2
commit
19a46e3925
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ use crate::{
|
|||
/// use actix_web::{middleware, http::header, web, App, HttpResponse, Responder};
|
||||
///
|
||||
/// async fn index_handler() -> actix_web::Result<impl Responder> {
|
||||
/// Ok(actix_files::NamedFile::open("./assets/index.html.gz")?
|
||||
/// Ok(actix_files::NamedFile::open_async("./assets/index.html.gz").await?
|
||||
/// .customize()
|
||||
/// .insert_header(header::ContentEncoding::Gzip))
|
||||
/// }
|
||||
|
|
Loading…
Reference in a new issue