router: Fix "/minio" router for web.

This commit is contained in:
Harshavardhana
2016-02-21 22:38:38 -08:00
parent d3966d1dde
commit 5da1972d1f
3 changed files with 10 additions and 12 deletions

View File

@@ -21,6 +21,7 @@ import (
"net/http"
"net/url"
"os"
"path"
"path/filepath"
"runtime"
"strconv"
@@ -175,7 +176,7 @@ func (web *webAPI) ListBuckets(r *http.Request, args *ListBucketsArgs, reply *Li
}
for _, bucket := range buckets {
// List all buckets which are not private.
if bucket.Name != privateBucket {
if bucket.Name != path.Base(privateBucket) {
reply.Buckets = append(reply.Buckets, BucketInfo{
Name: bucket.Name,
CreationDate: bucket.CreationDate,