Skip to content
Browse files

Merge pull request #219 from jagregory/no-mutate-uri

HttpRequest doesn't mutate the URI if it's an Addressable::URI
  • Loading branch information...
2 parents 05ac498 + 6bc3acc commit 7b256708d160ee653d0a13256ef317462aa53da9 @igrigorik igrigorik committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/em-http/request.rb
View
1 lib/em-http/request.rb
@@ -3,6 +3,7 @@ class HttpRequest
@middleware = []
def self.new(uri, options={})
+ uri = uri.clone
connopt = HttpConnectionOptions.new(uri, options)
c = HttpConnection.new

0 comments on commit 7b25670

Please sign in to comment.
Something went wrong with that request. Please try again.