fix: send index page with content-type (#26)

This commit is contained in:
sigoden 2022-06-06 11:20:42 +08:00 committed by GitHub
parent 63a7b530bb
commit 5ce7bde05c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -666,7 +666,8 @@ impl InnerService {
),
);
*res.body_mut() = output.into();
res.headers_mut()
.typed_insert(ContentType::from(mime_guess::mime::TEXT_HTML_UTF_8));
Ok(())
}