toland/patron — pull request #58 by jwilger (2012-03-26 19:15:29+00:00)
Title: Allow Session.base_url to be overriden for specific requests

Uses URI.join to put together the base_url and the request url. Under the
hood, this does the right thing:

URI.join("http://example.com:123", "http://foo.example.com:1234/foo/bar").to_s
#=> "http://foo.example.com:1234/foo/bar"

URI.join("http://example.com:123", "/foo/bar").to_s
#=> "http://example.com:123/foo/bar"