-
Notifications
You must be signed in to change notification settings - Fork 105
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The AmazonS3Builder cannot parse this URL:
https://bucket.s3.amazonaws.com/path
It's preferred for URLs to include regions in the URL, like https://[bucket].s3.[region].amazonaws.com, but we should still allow the old-style URL.
To Reproduce
This test fails without any changes
let mut builder = AmazonS3Builder::new();
builder
.parse_url("https://bucket.s3.amazonaws.com")
.unwrap();
assert_eq!(builder.bucket_name, Some("bucket".to_string()));
assert!(builder.virtual_hosted_style_request.get().unwrap());Expected behavior
Should parse URL
Additional context
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working