From 876c026577acc07846d96b5cc735625d74241222 Mon Sep 17 00:00:00 2001 From: ojab Date: Wed, 31 Oct 2012 14:42:48 +0400 Subject: [PATCH] Change Content-Type to application/json application/json-rpc is defined only in draft spec for JSON-RPC 1.2 http://www.jsonrpc.org/historical/json-rpc-over-http.html which is deprecated in favor of JSON-RPC 2.0 and application/json. --- zabbix/zabbix_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zabbix/zabbix_api.py b/zabbix/zabbix_api.py index 5f13e6c..e177ddb 100644 --- a/zabbix/zabbix_api.py +++ b/zabbix/zabbix_api.py @@ -256,7 +256,7 @@ def test_login(self): return False def do_request(self, json_obj): - headers = {'Content-Type': 'application/json-rpc', + headers = {'Content-Type': 'application/json', 'User-Agent': 'python/zabbix_api'} if self.httpuser: