lib/rufus/verbs/endpoint.rb in rufus-verbs-0.1 vs lib/rufus/verbs/endpoint.rb in rufus-verbs-0.2

- old
+ new

@@ -39,11 +39,11 @@ module Rufus module Verbs - VERSION = "0.1" + VERSION = "0.2" USER_AGENT = "Ruby rufus-verbs #{VERSION}" # # An EndPoint can be used to share common options among a set of # requests. @@ -223,9 +223,11 @@ opts[:scheme] = r[0] || @opts[:scheme] opts[:host] = r[1] || @opts[:host] opts[:port] = r[2] || @opts[:port] opts[:path] = r[3] || @opts[:path] opts[:query] = r[4] || @opts[:query] + + opts.delete :path if opts[:path] == "" opts[:c_uri] = [ opts[:scheme], opts[:host], opts[:port],