Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove trailing slash from
bucket_host
The `fastenv.cloud.object_storage.ObjectStorageConfig` class is used to configure fastenv for connecting to object storage buckets. The class accepts a `bucket_host` in "virtual-hosted-style," like `<BUCKET_NAME>.s3.<REGION>.amazonaws.com` for AWS S3 or `<BUCKET_NAME>.s3.<REGION>.backblazeb2.com` for Backblaze B2. It is common to append trailing slashes ("/") to URLs. These should be removed during configuration because some of the configuration logic uses the Python string method `string.endswith()` assuming there is no slash at the end. This commit will update `fastenv.cloud.object_storage.ObjectStorageConfig` to remove trailing slashes from `bucket_host`. #8 https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html
- Loading branch information