During the course of an actual request, the Request#uri method is called more than once. If the request's path is not relative, that method destructively updates @path, and so parameters get duplicated each time uri is called. This change clones the path first (and adds a lame test).
…pter, and have this work as expected with the Net:HTTP ConnectionAdapter.
Without this patch, I run the following foo.rb: require 'rubygems' require 'httparty' puts "hello" and get this output: $ ruby -w foo.rb /var/lib/gems/1.8/gems/httparty-0.7.7/lib/httparty/request.rb:39: warning: method redefined; discarding old path= hello Since we plan to define path= below, just use attr_reader instead of attr_accessor in the first place, and the warning goes away. I'm using this version of ruby: $ ruby -v ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]