storage: Upgrade REST version after adding WriteAll API (#6819)

Rolling update doesn't work properly because Storage REST API has
a new API WriteAll() but without API version number increase.

Also be sure to return 404 for unknown http paths.
This commit is contained in:
Anis Elleuch
2018-11-15 21:18:58 +01:00
committed by kannappanr
parent 712abc7958
commit 1c24c93f73
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -378,5 +378,6 @@ func registerStorageRESTHandlers(router *mux.Router, endpoints EndpointList) {
subrouter.Methods(http.MethodPost).Path("/" + storageRESTMethodRenameFile).HandlerFunc(httpTraceHdrs(server.RenameFileHandler)).
Queries(restQueries(storageRESTSrcVolume, storageRESTSrcPath, storageRESTDstVolume, storageRESTDstPath)...)
subrouter.NotFoundHandler = http.HandlerFunc(httpTraceAll(notFoundHandler))
}
}