Skip to content

Commit 391de8c

Browse files
authored
fix(backend): set default value to true for ForcePathStyle (#11281)
Signed-off-by: zazulam <[email protected]>
1 parent c27df6f commit 391de8c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/src/v2/objectstore/config.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ package objectstore
1818
import (
1919
"encoding/json"
2020
"fmt"
21-
"github.com/golang/glog"
2221
"os"
2322
"path"
2423
"regexp"
2524
"strconv"
2625
"strings"
26+
27+
"github.com/golang/glog"
2728
)
2829

2930
// The endpoint uses Kubernetes service DNS name with namespace:
@@ -228,6 +229,8 @@ func StructuredS3Params(p map[string]string) (*S3Params, error) {
228229
return nil, err
229230
}
230231
sparams.ForcePathStyle = boolVal
232+
} else {
233+
sparams.ForcePathStyle = true
231234
}
232235
return sparams, nil
233236
}

0 commit comments

Comments
 (0)