lib/em-http/request.rb in em-http-request-1.0.3 vs lib/em-http/request.rb in em-http-request-1.1.0
- old
+ new
@@ -1,9 +1,10 @@
module EventMachine
class HttpRequest
@middleware = []
def self.new(uri, options={})
+ uri = uri.clone
connopt = HttpConnectionOptions.new(uri, options)
c = HttpConnection.new
c.connopts = connopt
c.uri = uri