mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-12 02:25:41 +00:00
cargo fmt
This commit is contained in:
@@ -82,9 +82,9 @@ fn handle_widget_assets(path: &str) -> HttpResponse {
|
||||
};
|
||||
|
||||
HttpResponse::Ok()
|
||||
.insert_header(header::CacheControl(vec![header::CacheDirective::MaxAge(
|
||||
crate::CACHE_AGE,
|
||||
)]))
|
||||
.insert_header(header::CacheControl(vec![
|
||||
header::CacheDirective::MaxAge(crate::CACHE_AGE),
|
||||
]))
|
||||
.content_type(from_path(path).first_or_octet_stream().as_ref())
|
||||
.body(body)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user