Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Commit

Permalink
Client.get_authorize_url sets the Content-Type
Browse files Browse the repository at this point in the history
It is required by the OAuth spec and it was missing.
  • Loading branch information
brunal committed Jan 16, 2015
1 parent 5d53015 commit 3f43257
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions discogs_client/client.py
Expand Up @@ -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)
Expand Down

0 comments on commit 3f43257

Please sign in to comment.