web: set json welcome content type to json utf8

This commit is contained in:
David Stainton 2017-02-23 00:25:52 +00:00 committed by Jean-Paul Calderone
parent a87822e66b
commit 16e56611f3

View File

@ -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 = {}