mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 03:14:21 +00:00
web: set json welcome content type to json utf8
This commit is contained in:
parent
a87822e66b
commit
16e56611f3
@ -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 = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user