lib/twilio-ruby/util/request_validator.rb in twilio-ruby-3.1.1 vs lib/twilio-ruby/util/request_validator.rb in twilio-ruby-3.2.0

- old
+ new

@@ -10,10 +10,10 @@ expected = build_signature_for url, params expected == signature end def build_signature_for(url, params) - data = url + params.sort.to_s + data = url + params.sort.join digest = OpenSSL::Digest::Digest.new('sha1') Base64.encode64(OpenSSL::HMAC.digest(digest, @auth_token, data)).strip end end