From 16e56611f312ae3d9a7113f679691dae1381fa16 Mon Sep 17 00:00:00 2001 From: David Stainton Date: Thu, 23 Feb 2017 00:25:52 +0000 Subject: [PATCH] web: set json welcome content type to json utf8 --- src/allmydata/web/root.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/web/root.py b/src/allmydata/web/root.py index 908300da9..b8888d79b 100644 --- a/src/allmydata/web/root.py +++ b/src/allmydata/web/root.py @@ -195,7 +195,7 @@ class Root(rend.Page): return rend.Page.renderHTTP(self, ctx) def json_welcome(self, ctx): - inevow.IRequest(ctx).setHeader("content-type", "text/plain") + inevow.IRequest(ctx).setHeader("content-type", "application/json; charset=utf-8") intro_summaries = [s.summary for s in self.client.introducer_connection_statuses()] sb = self.client.get_storage_broker() servers = {}