|
|
@ -53,12 +53,22 @@ func TestRedirectLocation(t *testing.T) { |
|
|
|
location: minioReservedBucketPath + "/login", |
|
|
|
location: minioReservedBucketPath + "/login", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
// 5. When urlPath is '/favicon.ico'
|
|
|
|
// 5. When urlPath is '/favicon-16x16.png'
|
|
|
|
urlPath: "/favicon.ico", |
|
|
|
urlPath: "/favicon-16x16.png", |
|
|
|
location: minioReservedBucketPath + "/favicon.ico", |
|
|
|
location: minioReservedBucketPath + "/favicon-16x16.png", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
// 6. When urlPath is '/unknown'
|
|
|
|
// 6. When urlPath is '/favicon-16x16.png'
|
|
|
|
|
|
|
|
urlPath: "/favicon-32x32.png", |
|
|
|
|
|
|
|
location: minioReservedBucketPath + "/favicon-32x32.png", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// 7. When urlPath is '/favicon-96x96.png'
|
|
|
|
|
|
|
|
urlPath: "/favicon-96x96.png", |
|
|
|
|
|
|
|
location: minioReservedBucketPath + "/favicon-96x96.png", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// 8. When urlPath is '/unknown'
|
|
|
|
urlPath: "/unknown", |
|
|
|
urlPath: "/unknown", |
|
|
|
location: "", |
|
|
|
location: "", |
|
|
|
}, |
|
|
|
}, |
|
|
|