Skip to content

Commit

Permalink
remove Base64.strict_encode64 to support Ruby 1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wang committed Jun 1, 2015
1 parent ad256f6 commit 2ede35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ringcentral_sdk/platform/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def authorized(token=nil)

def get_api_key()
api_key = (@app_key.is_a?(String) && @app_secret.is_a?(String)) \
? Base64.strict_encode64("#{@app_key}:#{@app_secret}") : ''
? Base64.encode64("#{@app_key}:#{@app_secret}").gsub(/[\s\t\r\n]/,'') : ''
return api_key
end

Expand Down

0 comments on commit 2ede35a

Please sign in to comment.