Skip to content

Commit cb674f7

Browse files
committed
fix: force extension to lowercase before matching
1 parent bd6213f commit cb674f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

router/pkg/routerconfig/s3/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"io"
88
"net/http"
99
"path/filepath"
10+
"strings"
1011
"time"
1112

1213
"github.com/klauspost/compress/gzip"
@@ -96,7 +97,7 @@ func (c Client) getConfigFile(ctx context.Context, modifiedSince time.Time) ([]b
9697

9798
var configReader io.Reader
9899

99-
switch filepath.Ext(c.options.ObjectPath) {
100+
switch strings.ToLower(filepath.Ext(c.options.ObjectPath)) {
100101
case ".gz":
101102
gzipReader, err := gzip.NewReader(minioReader)
102103
if err != nil {

0 commit comments

Comments
 (0)