Skip to content

Commit

Permalink
Merge pull request igrigorik#219 from jagregory/no-mutate-uri
Browse files Browse the repository at this point in the history
HttpRequest doesn't mutate the URI if it's an Addressable::URI
  • Loading branch information
igrigorik committed Jun 17, 2013
2 parents 05ac498 + 6bc3acc commit 7b25670
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/em-http/request.rb
Expand Up @@ -3,6 +3,7 @@ class HttpRequest
@middleware = []

def self.new(uri, options={})
uri = uri.clone
connopt = HttpConnectionOptions.new(uri, options)

c = HttpConnection.new
Expand Down

0 comments on commit 7b25670

Please sign in to comment.