cargo fmt

This commit is contained in:
realaravinth
2021-06-30 20:14:15 +05:30
parent 9f940c317a
commit c05888d648
4 changed files with 7 additions and 9 deletions

View File

@@ -62,9 +62,9 @@ pub fn handle_embedded_file(path: &str) -> HttpResponse {
Cow::Owned(bytes) => bytes.into(),
};
HttpResponse::Ok()
.insert_header(header::CacheControl(vec![header::CacheDirective::MaxAge(
CACHE_AGE,
)]))
.insert_header(header::CacheControl(vec![
header::CacheDirective::MaxAge(CACHE_AGE),
]))
.content_type(from_path(path).first_or_octet_stream().as_ref())
.body(body)
}