From eb94d310e86988c23d991f12139c48722b018af9 Mon Sep 17 00:00:00 2001 From: soruh Date: Tue, 21 Nov 2023 13:12:02 +0100 Subject: [PATCH] send content type for index --- src/http.rs | 1 + 1 file changed, 1 insertion(+) 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();