1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-31 11:02:08 +01:00

fix doc test

This commit is contained in:
Rob Ede 2022-01-03 15:35:47 +00:00
parent 68cd853aa2
commit 19a46e3925
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -61,7 +61,7 @@ use crate::{
/// use actix_web::{middleware, http::header, web, App, HttpResponse, Responder}; /// use actix_web::{middleware, http::header, web, App, HttpResponse, Responder};
/// ///
/// async fn index_handler() -> actix_web::Result<impl 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() /// .customize()
/// .insert_header(header::ContentEncoding::Gzip)) /// .insert_header(header::ContentEncoding::Gzip))
/// } /// }