mirror of
https://github.com/minio/minio.git
synced 2025-11-21 18:26:04 -05:00
Use const slashSeparator instead of "/" everywhere (#8028)
This commit is contained in:
@@ -824,7 +824,7 @@ func testUploadWebHandler(obj ObjectLayer, instanceType string, t TestErrHandler
|
||||
|
||||
test := func(token string, sendContentLength bool) int {
|
||||
rec := httptest.NewRecorder()
|
||||
req, rErr := http.NewRequest("PUT", "/minio/upload/"+bucketName+"/"+objectName, nil)
|
||||
req, rErr := http.NewRequest("PUT", "/minio/upload/"+bucketName+SlashSeparator+objectName, nil)
|
||||
if rErr != nil {
|
||||
t.Fatalf("Cannot create upload request, %v", rErr)
|
||||
}
|
||||
@@ -926,7 +926,7 @@ func testDownloadWebHandler(obj ObjectLayer, instanceType string, t TestErrHandl
|
||||
|
||||
test := func(token string) (int, []byte) {
|
||||
rec := httptest.NewRecorder()
|
||||
path := "/minio/download/" + bucketName + "/" + objectName + "?token="
|
||||
path := "/minio/download/" + bucketName + SlashSeparator + objectName + "?token="
|
||||
if token != "" {
|
||||
path = path + token
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user