1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

bug #3757: Use path uri for marketplace client

This commit is contained in:
Daniel Molina 2015-08-26 15:48:33 +02:00
parent d840ce3eb3
commit 830eb33967

View File

@ -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)