lib/lastfm.rb in lastfm-1.15.0 vs lib/lastfm.rb in lastfm-1.15.1
- old
+ new
@@ -101,10 +101,10 @@
#params[:format] = format
params.update(:sk => @session) if with_session
params.update(:api_sig => Digest::MD5.hexdigest(build_method_signature(params))) if with_signature
- request_args = [http_method, '/', (http_method == :post ? :body : :query) => params]
+ request_args = [http_method, '/', { (http_method == :post ? :body : :query) => params }]
response = if use_https
HTTPSRequest.send(*request_args)
else
HTTPRequest.send(*request_args)