Skip to content

Commit

Permalink
Minor Fix (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsha-msft authored Feb 22, 2022
1 parent 3d50a5f commit 83a533b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions azblob/parsing_urls.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func NewBlobURLParts(u url.URL) BlobURLParts {
if isIPEndpointStyle(up.Host) {
if accountEndIndex := strings.Index(path, "/"); accountEndIndex == -1 { // Slash not found; path has account name & no container name or blob
up.IPEndpointStyleInfo.AccountName = path
path = "" // No ContainerName present in the URL so path should be empty
} else {
up.IPEndpointStyleInfo.AccountName = path[:accountEndIndex] // The account name is the part between the slashes
path = path[accountEndIndex+1:] // path refers to portion after the account name now (container & blob names)
Expand Down

0 comments on commit 83a533b

Please sign in to comment.