lib/frenchy/client.rb in frenchy-0.6.2 vs lib/frenchy/client.rb in frenchy-0.6.3
- old
+ new
@@ -45,18 +45,15 @@
end
private
def perform(method, path, params)
- uri = URI(@host)
+ uri = URI(@host + path)
body = nil
headers = {
"User-Agent" => "Frenchy/#{Frenchy::VERSION}",
"Accept" => Frenchy.accept_header,
}.merge(@headers)
-
- # Set the URI path
- uri.path = URI.encode(path)
# Set request parameters
if params.any?
case method
when "GET"