mirror of
https://github.com/minio/minio.git
synced 2025-01-23 12:43:16 -05:00
parent
c9c0d5eec2
commit
e6ce9da087
@ -637,7 +637,7 @@ func (f bucketForwardingHandler) ServeHTTP(w http.ResponseWriter, r *http.Reques
|
|||||||
if t := r.URL.Query().Get("token"); t != "" {
|
if t := r.URL.Query().Get("token"); t != "" {
|
||||||
bucket, _ = urlPath2BucketObjectName(strings.TrimPrefix(r.URL.Path, minioReservedBucketPath+"/download"))
|
bucket, _ = urlPath2BucketObjectName(strings.TrimPrefix(r.URL.Path, minioReservedBucketPath+"/download"))
|
||||||
} else if getRequestAuthType(r) != authTypeJWT && !strings.HasPrefix(r.URL.Path, minioReservedBucketPath) {
|
} else if getRequestAuthType(r) != authTypeJWT && !strings.HasPrefix(r.URL.Path, minioReservedBucketPath) {
|
||||||
bucket, _ = urlPath2BucketObjectName(r.URL.Path)
|
bucket, _ = request2BucketObjectName(r)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if bucket == "" {
|
if bucket == "" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user