From 3f43257ae61e95963b6ca33335f0391ed07b091a Mon Sep 17 00:00:00 2001 From: Bruno Cauet Date: Fri, 16 Jan 2015 18:01:02 +0100 Subject: [PATCH] Client.get_authorize_url sets the Content-Type It is required by the OAuth spec and it was missing. --- discogs_client/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/discogs_client/client.py b/discogs_client/client.py index 536f7b6..e693563 100644 --- a/discogs_client/client.py +++ b/discogs_client/client.py @@ -50,6 +50,7 @@ def get_authorize_url(self, callback_url=None): params = {} params['User-Agent'] = self.user_agent + params['Content-Type'] = 'application/x-www-form-urlencoded' if callback_url: params['oauth_callback'] = callback_url postdata = urlencode(params)