mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
+2
-1
@@ -19,6 +19,7 @@ package main
|
||||
import (
|
||||
"encoding/xml"
|
||||
"net/http"
|
||||
"path"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -255,7 +256,7 @@ type DeleteObjectsResponse struct {
|
||||
|
||||
// getLocation get URL location.
|
||||
func getLocation(r *http.Request) string {
|
||||
return r.URL.Path
|
||||
return path.Clean(r.URL.Path) // Clean any trailing slashes.
|
||||
}
|
||||
|
||||
// getObjectLocation gets the relative URL for an object
|
||||
|
||||
Reference in New Issue
Block a user