File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11require 'json'
2+ require 'uri'
23require 'ruby-stackoverflow/client/response_data'
34require 'ruby-stackoverflow/client/resource/resource'
45require 'ruby-stackoverflow/client/resource/user'
@@ -56,8 +57,8 @@ def parse_response(data, klass)
5657 def append_params_to_url ( url , options )
5758 url = Configuration . api_url + url
5859 options . merge! ( key_params )
59- options = options . to_a . map { | k , v | " #{ k } = #{ v } " }
60- url +'?' +options . join ( '&' )
60+ options = URI . encode_www_form ( options )
61+ url +'?' +options
6162 end
6263
6364 def key_params
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ def parse_options(options = {})
1414 else
1515 options [ k ] = v
1616 end
17- end
17+ end
1818 end
1919
2020 def join_ids ( ids )
You can’t perform that action at this time.
0 commit comments