diff --git a/cmd/storage-rest-server.go b/cmd/storage-rest-server.go index f0701864a..d85279068 100644 --- a/cmd/storage-rest-server.go +++ b/cmd/storage-rest-server.go @@ -377,7 +377,7 @@ func registerStorageRESTHandlers(router *mux.Router, endpoints EndpointList) { Queries(restQueries(storageRESTVolume, storageRESTFilePath)...) subrouter.Methods(http.MethodPost).Path("/" + storageRESTMethodRenameFile).HandlerFunc(httpTraceHdrs(server.RenameFileHandler)). Queries(restQueries(storageRESTSrcVolume, storageRESTSrcPath, storageRESTDstVolume, storageRESTDstPath)...) - - subrouter.NotFoundHandler = http.HandlerFunc(httpTraceAll(notFoundHandler)) } + + router.NotFoundHandler = http.HandlerFunc(httpTraceAll(notFoundHandler)) }