Skip to content

Commit 83a533b

Browse files
authored
Minor Fix (#316)
1 parent 3d50a5f commit 83a533b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

azblob/parsing_urls.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ func NewBlobURLParts(u url.URL) BlobURLParts {
6969
if isIPEndpointStyle(up.Host) {
7070
if accountEndIndex := strings.Index(path, "/"); accountEndIndex == -1 { // Slash not found; path has account name & no container name or blob
7171
up.IPEndpointStyleInfo.AccountName = path
72+
path = "" // No ContainerName present in the URL so path should be empty
7273
} else {
7374
up.IPEndpointStyleInfo.AccountName = path[:accountEndIndex] // The account name is the part between the slashes
7475
path = path[accountEndIndex+1:] // path refers to portion after the account name now (container & blob names)

0 commit comments

Comments
 (0)