From ca0f09b461b135c94221a144d6772475a4b66a69 Mon Sep 17 00:00:00 2001 From: Leandro Guillen Date: Tue, 30 Jun 2015 14:41:48 +0200 Subject: [PATCH] Small fix --- python-IDAS4/ContextBroker/CheckVersion.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python-IDAS4/ContextBroker/CheckVersion.py b/python-IDAS4/ContextBroker/CheckVersion.py index 4d4665c..a1a897d 100644 --- a/python-IDAS4/ContextBroker/CheckVersion.py +++ b/python-IDAS4/ContextBroker/CheckVersion.py @@ -40,8 +40,7 @@ f.close() CB_URL = "http://"+CB_HOST+":"+CB_PORT -PAYLOAD = {'some' : 'data'} -HEADERS = {'content-type': 'application/json' , 'X-Auth-Token' : TOKEN} +HEADERS = {'X-Auth-Token' : TOKEN} HEADERS_SHOW = {'content-type': 'application/json', 'accept': 'application/json' , 'X-Auth-Token' : TOKEN_SHOW} URL = CB_URL + '/version' @@ -49,7 +48,7 @@ print "* Asking to "+URL print "* Headers: "+str(HEADERS_SHOW) print "..." -r = requests.get(URL, data=json.dumps(PAYLOAD), headers=HEADERS) +r = requests.get(URL, headers=HEADERS) print print "* Status Code: "+str(r.status_code) print "* Response: "