From 92d423aefdb7f0e517f2af8436a70c8bdd065cc6 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Mon, 13 Mar 2017 11:54:40 -0400 Subject: [PATCH] fix jsonrpc http headers --- lbrynet/lbrynet_daemon/auth/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lbrynet/lbrynet_daemon/auth/server.py b/lbrynet/lbrynet_daemon/auth/server.py index 65e0a604f..d2f5fb013 100644 --- a/lbrynet/lbrynet_daemon/auth/server.py +++ b/lbrynet/lbrynet_daemon/auth/server.py @@ -114,7 +114,8 @@ class AuthJSONRPCServer(AuthorizedBase): def _set_headers(self, request, data, update_secret=False): if conf.settings['allowed_origin']: request.setHeader("Access-Control-Allow-Origin", conf.settings['allowed_origin']) - request.setHeader("Content-Type", "text/json") + request.setHeader("Content-Type", "application/json") + request.setHeader("Accept", "application/json-rpc") request.setHeader("Content-Length", str(len(data))) if update_secret: session_id = request.getSession().uid