Browse Source

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

pull/27/head
sigoden 3 years ago committed by GitHub
parent
commit
5ce7bde05c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/server.rs

3
src/server.rs

@ -666,7 +666,8 @@ impl InnerService { @@ -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(())
}

Loading…
Cancel
Save