Add charset meta to GraphiQL iron integration (#228)

Fixes #223
This commit is contained in:
Damir Vandic 2018-08-20 19:19:47 +02:00 committed by Christian Legnitto
parent c04b06f79b
commit 273edc1d64

View file

@ -327,7 +327,7 @@ where
impl Handler for GraphiQLHandler {
fn handle(&self, _: &mut Request) -> IronResult<Response> {
let content_type = "text/html".parse::<Mime>().unwrap();
let content_type = "text/html; charset=utf-8".parse::<Mime>().unwrap();
Ok(Response::with((
content_type,