From 5be5b65d0bf7dd00801a9410b703665e17df7e45 Mon Sep 17 00:00:00 2001 From: HPC core facility CalcUA Date: Thu, 8 Aug 2019 14:47:59 +0200 Subject: [PATCH] - removed Content-Type header from request_access_token because it resulted in a HTTPError of 400 (Bad request) --- lib/vsc/utils/rest_oauth.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/vsc/utils/rest_oauth.py b/lib/vsc/utils/rest_oauth.py index c321c61..68024d1 100644 --- a/lib/vsc/utils/rest_oauth.py +++ b/lib/vsc/utils/rest_oauth.py @@ -40,7 +40,6 @@ def request_access_token(opener, path, client_id, client_secret): "client_id": client_id, "client_secret": client_secret}) request = urllib2.Request(path, payload) - request.add_header('Content-Type', 'application/json') request.get_method = lambda: 'POST' uri = opener.open(request) response = uri.read()