mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 13:10:22 +03:00
Use const slashSeparator instead of "/" everywhere (#8028)
This commit is contained in:
@@ -35,12 +35,12 @@ func TestRedirectLocation(t *testing.T) {
|
||||
{
|
||||
// 1. When urlPath is '/minio'
|
||||
urlPath: minioReservedBucketPath,
|
||||
location: minioReservedBucketPath + "/",
|
||||
location: minioReservedBucketPath + SlashSeparator,
|
||||
},
|
||||
{
|
||||
// 2. When urlPath is '/'
|
||||
urlPath: "/",
|
||||
location: minioReservedBucketPath + "/",
|
||||
urlPath: SlashSeparator,
|
||||
location: minioReservedBucketPath + SlashSeparator,
|
||||
},
|
||||
{
|
||||
// 3. When urlPath is '/webrpc'
|
||||
|
||||
Reference in New Issue
Block a user