diff --git a/src/http.rs b/src/http.rs index 9c54076..59e3cdd 100644 --- a/src/http.rs +++ b/src/http.rs @@ -52,6 +52,7 @@ fn index(req: &Request) -> Result, hyper::http::Error> { if accepts_gzip { response .header(CONTENT_ENCODING, "gzip") + .header(CONTENT_TYPE, "text/html") .body(Body::from(COMPRESSED_HTML)) } else { let (mut sender, body) = Body::channel();