fix BucketForward Handler for federated setup (#8646)

fixes #8595
master
Amol Umbarkar 5 years ago committed by Nitish Tiwari
parent c9c0d5eec2
commit e6ce9da087
  1. 2
      cmd/generic-handlers.go

@ -637,7 +637,7 @@ func (f bucketForwardingHandler) ServeHTTP(w http.ResponseWriter, r *http.Reques
if t := r.URL.Query().Get("token"); t != "" {
bucket, _ = urlPath2BucketObjectName(strings.TrimPrefix(r.URL.Path, minioReservedBucketPath+"/download"))
} else if getRequestAuthType(r) != authTypeJWT && !strings.HasPrefix(r.URL.Path, minioReservedBucketPath) {
bucket, _ = urlPath2BucketObjectName(r.URL.Path)
bucket, _ = request2BucketObjectName(r)
}
}
if bucket == "" {

Loading…
Cancel
Save