index : gitrs
A lightweight web interface for browsing Git repositories, implemented in Rust
about summary refs log tree commit diff

Diffstat (limited to 'src/routes/static.rs')

-rw-r--r-- src/routes/static.rs 1
 1 file changed, 1 insertion(+)

diff --git a/src/routes/static.rs b/src/routes/static.rs
index 0b4fe73..cb0e0b1 100644
--- a/src/routes/static.rs
+++ b/src/routes/static.rs
@@ -19,6 +19,7 @@
            let mime_type = mime_guess::from_path(&path).first_or_octet_stream();
            Ok(HttpResponse::Ok()
                .content_type(mime_type.as_ref())
                .insert_header(("Cache-Control", "no-cache, must-revalidate"))
                .body(content.data.into_owned()))
        }
        None => Ok(HttpResponse::NotFound().body("Not Found")),