fog/fog — Issue #611: get_object_https?_url for s3 is generating urls with the bucket in the path
Author: nate
Created: 2011-11-15 20:50:22+00:00
State: open

This may be intentional, and in some cases it's necessary, but you don't always know which region a bucket is in, so it's useful to generate the url with the bucket in the subdomain. If it doesn't work as a subdomain then it's in us-east, so you can just use s3.amazonaws.com and put the bucket in the path.

Here's how it works now:
```ruby
connection.get_object_https_url("foo_bar", "baz") # => "https://s3.amazonaws.com/foo_bar/baz?..."
connection.get_object_https_url("foo.bar", "baz") # => "https://s3.amazonaws.com/foo.bar/baz?..."
connection.get_object_https_url("foo", "bar") # => "https://s3.amazonaws.com/foo/bar?..."
```

Here's how I would expect it to work:

```ruby
connection.get_object_https_url("foo_bar", "baz") # => "https://s3.amazonaws.com/foo_bar/baz?..."
connection.get_object_https_url("foo.bar", "baz") # => "https://foo.bar.s3.amazonaws.com/baz?..."
connection.get_object_https_url("foo", "bar") # => "https://foo.s3.amazonaws.com/bar?..."
```

Thoughts? Ideas?