Permalink
Browse files

[fix] oauth: removed the work-around for base64

  • Loading branch information...
1 parent 843d244 commit 4ccbdb42bc1d6f5cccc1f521dda69f14dd86da49 @Aqua-Ye Aqua-Ye committed Dec 8, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 stdlib/apis/oauth/oauth.opa
@@ -112,8 +112,7 @@ type OAuth.token_res = { success : OAuth.token } / { error : string }
do API_libs_private.apijlog("Base string: {base_string}")
key = "{p.consumer_secret}&{secret}"
res = Crypto.Base64.encode(Crypto.Hash.hmac_sha1(key, base_string))
- res = API_libs_private.url_encoder("{res}=")
- |> String.replace("+", "%2B", _);
+ res = API_libs_private.url_encoder(res)
do API_libs_private.apijlog("Signature: {res}")
res

0 comments on commit 4ccbdb4

Please sign in to comment.