Skip to content

Commit

Permalink
Don't force aws sdk v2 for s3 buckets [#112]
Browse files Browse the repository at this point in the history
* this is to allow sdk v1 query params like s3ForcePathStyle, to work with Minio, etc.
  • Loading branch information
bdon committed Jan 5, 2024
1 parent 65e46f9 commit 662b825
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pmtiles/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,6 @@ func NormalizeBucketKey(bucket string, prefix string, key string) (string, strin
}
}

if strings.HasPrefix(bucket, "s3") {
u, err := url.Parse(bucket)
if err != nil {
fmt.Println("Error parsing URL:", err)
return "", "", err
}
values := u.Query()
values.Set("awssdk", "v2")
u.RawQuery = values.Encode()
return u.String(), key, nil
}
return bucket, key, nil
}

Expand Down

0 comments on commit 662b825

Please sign in to comment.