Skip to content

Commit

Permalink
Narrow Down s3 detector for 5 parts virtual hosted style test
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdong66 committed Mar 30, 2021
1 parent 597c96a commit e571d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect_s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (d *S3Detector) detectHTTP(src string) (string, bool, error) {
return d.detectPathStyle(hostParts[0], parts[1:])
} else if len(hostParts) == 4 {
return d.detectVhostStyle(hostParts[1], hostParts[0], parts[1:])
} else if len(hostParts) == 5 {
} else if len(hostParts) == 5 && hostParts[1] == "s3" {
return d.detectNewVhostStyle(hostParts[2], hostParts[0], parts[1:])
} else {
return "", false, fmt.Errorf(
Expand Down

0 comments on commit e571d6d

Please sign in to comment.