aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/base.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/base.go')
-rw-r--r--routers/web/base.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/base.go b/routers/web/base.go
index 78dde57fa6..c44233f957 100644
--- a/routers/web/base.go
+++ b/routers/web/base.go
@@ -23,7 +23,7 @@ func storageHandler(storageSetting *setting.Storage, prefix string, objStore sto
prefix = strings.Trim(prefix, "/")
funcInfo := routing.GetFuncInfo(storageHandler, prefix)
- if storageSetting.MinioConfig.ServeDirect {
+ if storageSetting.ServeDirect() {
return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
if req.Method != "GET" && req.Method != "HEAD" {
http.Error(w, http.StatusText(http.StatusMethodNotAllowed), http.StatusMethodNotAllowed)