igrigorik/em-http-request — pull request #219 by jagregory (2013-02-27 10:06:47+00:00)
Title: HttpRequest doesn't mutate the URI if it's an Addressable::URI

If you pass an `Addressable::URI` into an `HttpRequest`, it mutates the instance by setting the port on it. This is unexpected to the caller, why would the port on the URI be set just by requesting it?

This change clones the uri that's passed in before mutating it.

I'm not sure if this is the best solution, but it's certainly the least impact. I'm not really confortable with the idea of `HttpConnectionOptions` mutating the URL at all, but stopping that would require a small refactor.