From 51e27bbba965249a6a9ccffca717b6cd183b2739 Mon Sep 17 00:00:00 2001 From: Aric Parkinson Date: Mon, 26 Aug 2019 16:29:54 -0600 Subject: [PATCH] Fix error from earlier oauthBodyHash commit --- auther.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/auther.go b/auther.go index 5a0f0fc..29de262 100644 --- a/auther.go +++ b/auther.go @@ -3,6 +3,7 @@ package oauth1 import ( "bytes" "crypto/rand" + "crypto/sha1" "encoding/base64" "fmt" "io/ioutil" @@ -17,6 +18,7 @@ import ( const ( authorizationHeaderParam = "Authorization" authorizationPrefix = "OAuth " // trailing space is intentional + oauthBodyHash = "oauth_body_hash" oauthConsumerKeyParam = "oauth_consumer_key" oauthNonceParam = "oauth_nonce" oauthSignatureParam = "oauth_signature"