From 273edc1d641f937e6ce5c0fff033c5f326e99546 Mon Sep 17 00:00:00 2001 From: Damir Vandic Date: Mon, 20 Aug 2018 19:19:47 +0200 Subject: [PATCH] Add charset meta to GraphiQL iron integration (#228) Fixes #223 --- juniper_iron/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juniper_iron/src/lib.rs b/juniper_iron/src/lib.rs index a35bb998..d8185aba 100644 --- a/juniper_iron/src/lib.rs +++ b/juniper_iron/src/lib.rs @@ -327,7 +327,7 @@ where impl Handler for GraphiQLHandler { fn handle(&self, _: &mut Request) -> IronResult { - let content_type = "text/html".parse::().unwrap(); + let content_type = "text/html; charset=utf-8".parse::().unwrap(); Ok(Response::with(( content_type,