carlhuda/bundler — pull request #2409 by jayniz (2013-03-19 16:31:34+00:00)
Title: Fix basic_auth for gem servers in environments without OpenSSL

When there's no OpenSSL, `USE_PERSISTENT` becomes false (see [vendored_persistent.rb](https://github.com/carlhuda/bundler/blob/master/lib/bundler/vendored_persistent.rb)). This causes password protected gem servers to not work, because we're only using host, port and path for the request (but not the full url with user and password, as with `USE_PERSISTENT`):

```ruby
if USE_PERSISTENT
response = @connection.request(uri) # Contains user/password
else
req = Net::HTTP::Get.new uri.request_uri # Contains only path
response = @connection.request(req)
end
```