From 244f2c0418dcc6d781f288810e1178c0480a66c2 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 23 Oct 2016 11:36:15 -0400 Subject: [PATCH] Oops, it should be application/json not text/json. --- xonstat/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xonstat/__init__.py b/xonstat/__init__.py index 2b26e29..aca302d 100644 --- a/xonstat/__init__.py +++ b/xonstat/__init__.py @@ -138,31 +138,31 @@ def main(global_config, **settings): config.add_view(view=ServerIndex, route_name="server_index", attr="html", renderer="server_index.mako", accept="text/html") config.add_view(view=ServerIndex, route_name="server_index", attr="json", renderer="json", - accept="text/json") + accept="application/json") config.add_route("server_top_maps", "/server/{id:\d+}/topmaps") config.add_view(view=ServerTopMaps, route_name="server_top_maps", attr="html", renderer="server_top_maps.mako", accept="text/html") config.add_view(view=ServerTopMaps, route_name="server_top_maps", attr="json", renderer="json", - accept="text/json") + accept="application/json") config.add_route("server_top_active", "/server/{id:\d+}/topactive") config.add_view(view=ServerTopPlayers, route_name="server_top_active", attr="html", renderer="server_top_active.mako", accept="text/html") config.add_view(view=ServerTopPlayers, route_name="server_top_active", attr="json", - renderer="json", accept="text/json") + renderer="json", accept="application/json") config.add_route("server_top_scorers", "/server/{id:\d+}/topscorers") config.add_view(view=ServerTopScorers, route_name="server_top_scorers", attr="html", renderer="server_top_scorers.mako", accept="text/html") config.add_view(view=ServerTopScorers, route_name="server_top_scorers", attr="json", - renderer="json", accept="text/json") + renderer="json", accept="application/json") config.add_route("server_info", "/server/{id:\d+}") config.add_view(view=ServerInfo, route_name="server_info", attr="html", renderer="server_info.mako", accept="text/html") config.add_view(view=ServerInfo, route_name="server_info", attr="json", renderer="json", - accept="text/json") + accept="application/json") # MAP ROUTES config.add_route("map_index", "/maps") -- 2.39.2