lib/flattr/request/oauth2.rb in flattr-0.2.3 vs lib/flattr/request/oauth2.rb in flattr-0.3.0
- old
+ new
@@ -15,10 +15,10 @@
def authorization_header
if @options[:access_token]
"Bearer #{@options[:access_token]}"
elsif @options[:client_id] && @options[:client_secret]
- "Basic #{base64_encode("#{@options[:client_id]}:#{@options[:client_secret]}")}"
+ "Basic #{Flattr::Client.base64_encode("#{@options[:client_id]}:#{@options[:client_secret]}")}"
else
nil
end
end