lib/oauth/signature/hmac/sha256.rb in oauth-0.5.8 vs lib/oauth/signature/hmac/sha256.rb in oauth-0.5.9

- old
+ new

@@ -3,10 +3,10 @@ module OAuth::Signature::HMAC class SHA256 < OAuth::Signature::Base implements "hmac-sha256" def body_hash - Base64.encode64(OpenSSL::Digest::SHA256.digest(request.body || "")).chomp.gsub(/\n/,"") + Base64.encode64(OpenSSL::Digest::SHA256.digest(request.body || "")).chomp.delete("\n") end private def digest