lib/buttercms-ruby.rb in buttercms-ruby-1.8 vs lib/buttercms-ruby.rb in buttercms-ruby-1.9

- old
+ new

@@ -69,10 +69,10 @@ if test_mode query[:test] = 1 end - path = "#{@api_url.path}#{URI.encode(path)}?#{URI.encode_www_form(query)}" + path = "#{@api_url.path}#{URI.encode_www_form(path)}?#{URI.encode_www_form(query)}" response = Net::HTTP.start(@api_url.host, @api_url.port, http_options) do |http| request = Net::HTTP::Get.new(path) request["User-Agent"] = "ButterCMS/Ruby #{ButterCMS::VERSION}"