mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-19 04:15:38 +02:00
fix doc test
This commit is contained in:
@@ -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))
|
||||
/// }
|
||||
|
Reference in New Issue
Block a user