mirror of
https://github.com/deps-rs/deps.rs.git
synced 2024-11-23 18:56:30 +00:00
Compare commits
2 commits
dcd41ac5e3
...
13f5983c0a
Author | SHA1 | Date | |
---|---|---|---|
|
13f5983c0a | ||
|
b579dc805d |
1 changed files with 2 additions and 2 deletions
|
@ -267,7 +267,7 @@ fn status_format_analysis(
|
|||
}
|
||||
|
||||
pub(crate) fn static_files(cfg: &mut ServiceConfig) {
|
||||
cfg.service(Resource::new(STATIC_STYLE_CSS_PATH).to(|| async {
|
||||
cfg.service(Resource::new(STATIC_STYLE_CSS_PATH).get(|| async {
|
||||
HttpResponse::Ok()
|
||||
.insert_header(ContentType(mime::TEXT_CSS_UTF_8))
|
||||
.insert_header(ETag(EntityTag::new_strong(
|
||||
|
@ -280,7 +280,7 @@ pub(crate) fn static_files(cfg: &mut ServiceConfig) {
|
|||
]))
|
||||
.body(assets::STATIC_STYLE_CSS)
|
||||
}))
|
||||
.service(Resource::new(STATIC_FAVICON_PATH).to(|| async {
|
||||
.service(Resource::new(STATIC_FAVICON_PATH).get(|| async {
|
||||
HttpResponse::Ok()
|
||||
.insert_header(ContentType(mime::IMAGE_SVG))
|
||||
.body(assets::STATIC_FAVICON)
|
||||
|
|
Loading…
Reference in a new issue