X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2b6f61a7d202b771be7e85c14fb4d1cb592142ec..28c6bbeeed6b228d51666914bcd845d05500107e:/services/keepstore/keepstore.go diff --git a/services/keepstore/keepstore.go b/services/keepstore/keepstore.go index c899d5166a..5ec1ad06d4 100644 --- a/services/keepstore/keepstore.go +++ b/services/keepstore/keepstore.go @@ -262,9 +262,11 @@ func main() { // Start a round-robin VolumeManager with the volumes we have found. KeepVM = MakeRRVolumeManager(goodvols) - // Tell the built-in HTTP server to direct all requests to the REST - // router. - http.Handle("/", MakeRESTRouter()) + // Tell the built-in HTTP server to direct all requests to the REST router. + routerWrapper := MakeRESTRouterWrapper() + http.HandleFunc("/", func(resp http.ResponseWriter, req *http.Request) { + routerWrapper.ServeHTTP(resp, req) + }) // Set up a TCP listener. listener, err := net.Listen("tcp", listen)