lib/rubygems/commands/inabox_command.rb in geminabox-0.3.3 vs lib/rubygems/commands/inabox_command.rb in geminabox-0.4.0

- old
+ new

@@ -61,10 +61,10 @@ File.open(gemfile, "rb") do |file| request_body, request_headers = Multipart::MultipartPost.new.prepare_query("file" => file) proxy.start(url.host, url.port) {|con| - req = Net::HTTP::Post.new('/upload', request_headers) + req = Net::HTTP::Post.new(url.path+'/upload', request_headers) req.basic_auth(url.user, url.password) if url.user handle_response(con.request(req, request_body)) } end end