lib/groupdocs/api/helpers/url_helper.rb in groupdocs-1.5.8 vs lib/groupdocs/api/helpers/url_helper.rb in groupdocs-1.5.9

- old
+ new

@@ -50,17 +50,18 @@ # def replace_client_id options[:path].sub!(/\{\{client_id\}\}/, client_id) end + # # Adds signature to path. # # @api private # def sign_url # calculate a hash of the path with private key - hash = OpenSSL::Digest::Digest.new('sha1') + hash = OpenSSL::Digest.new('sha1') # Changed in release 1.5.9 hash = OpenSSL::HMAC.digest(hash, private_key, options[:path]) # convert hash to base64 hash = Base64.strict_encode64(hash) # remove trailing '=' hash.gsub!(/=*$/, '')