lib/frenchy/client.rb in frenchy-0.5.1 vs lib/frenchy/client.rb in frenchy-0.5.2

- old
+ new

@@ -1,7 +1,8 @@ require "net/http" require "json" +require "uri" module Frenchy class Client attr_accessor :name, :host, :timeout, :retries @@ -52,10 +53,10 @@ "User-Agent" => "Frenchy/#{Frenchy::VERSION}", "Accept" => "application/json", }.merge(@headers) # Set the URI path - uri.path = path + uri.path = URI.encode(path) # Set request parameters if params.any? case method when "GET"