We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8286ca commit 56ac854Copy full SHA for 56ac854
Sources/S3/URLBuilder/URLBuilder.swift
@@ -14,16 +14,10 @@ extension Region {
14
15
/// Host URL including scheme
16
public func hostUrlString(bucket: String? = nil) -> String {
17
- if hostName != nil {
18
- return urlProtocol + host.finished(with: "/") + (bucket ?? "")
+ if let bucket = bucket {
+ return urlProtocol + host.finished(with: "/") + bucket
19
}
20
-
21
- var bucket = bucket
22
- if let b = bucket, !b.isEmpty {
23
- bucket = b + "."
24
- }
25
26
- return urlProtocol + (bucket ?? "") + host.finished(with: "/")
+ return urlProtocol + host.finished(with: "/")
27
28
29
private var urlProtocol: String {
0 commit comments