fog/fog — pull request #857 by michiels (2012-04-16 17:16:19+00:00)
Title: [aws|storage|] Make get_object_http_url use correct S3 host in returned URL

This fixes a previous typo in get_object_http_url to correctly use the
configured AWS S3 host name in the URL and adds a test for the default case
where the bucket name can be used as a DNS CNAME.

For example, a bucket company-testbucket would translate into:

http://company-testbucket./company-testbucket./fog_object?AWSAccessKeyId=...

Which is now fixed into:

http://company-testbucket.s3.amazonaws.com/fog_object?AWSAccessKeyId=...

Please let me know how to improve this patch if necessary, since this is my first contribution to fog. For example, I can also add more shindo tests for the get_object_http_url method since they are nonexistent at this moment.

This pull request, however fixes the case above.