send content type for index
This commit is contained in:
parent
5484140688
commit
eb94d310e8
@ -52,6 +52,7 @@ fn index(req: &Request<Body>) -> Result<Response<Body>, 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();
|
||||
|
Loading…
Reference in New Issue
Block a user