Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Heaton committed Jul 22, 2015
1 parent e5f7d58 commit 898111d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instagram/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _generate_sig(self, endpoint, params, secret):
sig = endpoint
for key in sorted(params.keys()):
sig += '|%s=%s' % (key, params[key])
return hmac.new(secret, sig, sha256).hexdigest()
return hmac.new(secret.encode(), sig.encode(), sha256).hexdigest()

def url_for_get(self, path, parameters):
return self._full_url_with_params(path, parameters)
Expand Down

0 comments on commit 898111d

Please sign in to comment.