From 830eb33967cdb3f3d14037dc41e51b9c16bd845d Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Wed, 26 Aug 2015 15:48:33 +0200 Subject: [PATCH] bug #3757: Use path uri for marketplace client --- src/cloud/marketplace/lib/marketplace_client.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cloud/marketplace/lib/marketplace_client.rb b/src/cloud/marketplace/lib/marketplace_client.rb index 40c21b51a0..6f4481c803 100644 --- a/src/cloud/marketplace/lib/marketplace_client.rb +++ b/src/cloud/marketplace/lib/marketplace_client.rb @@ -41,12 +41,12 @@ module Market end def get(path) - req = Net::HTTP::Proxy(@host, @port)::Get.new(path) + req = Net::HTTP::Proxy(@host, @port)::Get.new(@uri.path + path) do_request(req) end def post(path, body) - req = Net::HTTP::Proxy(@host, @port)::Post.new(path) + req = Net::HTTP::Proxy(@host, @port)::Post.new(@uri.path + path) req.body = body do_request(req)