1
0
mirror of https://github.com/moby/moby.git synced 2025-07-29 07:21:35 +03:00

api/server: fix profiler HTTP serving

Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
This commit is contained in:
unclejack
2015-04-01 11:56:30 +03:00
parent b9be50b578
commit 3bea892d54
2 changed files with 5 additions and 19 deletions

View File

@ -1300,7 +1300,7 @@ func makeHttpHandler(eng *engine.Engine, logging bool, localMethod string, local
func createRouter(eng *engine.Engine, logging, enableCors bool, corsHeaders string, dockerVersion string) *mux.Router {
r := mux.NewRouter()
if os.Getenv("DEBUG") != "" {
r.Handle("/debug", NewProfiler())
ProfilerSetup(r, "/debug/")
}
m := map[string]map[string]HttpApiFunc{
"GET": {