mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 06:00:24 +03:00
Add fs separator
This commit is contained in:
+5
-1
@@ -131,9 +131,13 @@ func IgnoreResourcesHandler(h http.Handler) http.Handler {
|
||||
return resourceHandler{h}
|
||||
}
|
||||
|
||||
const (
|
||||
separator = "/"
|
||||
)
|
||||
|
||||
// Resource handler ServeHTTP() wrapper
|
||||
func (h resourceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
splits := strings.SplitN(r.URL.Path, "/", 3)
|
||||
splits := strings.SplitN(r.URL.Path, separator, 3)
|
||||
switch len(splits) {
|
||||
// bucket exists
|
||||
case 2:
|
||||
|
||||
Reference in New Issue
Block a user