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

use router.Cancellable instead of direct CloseNotify

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
Alexander Morozov
2016-03-25 11:33:54 -07:00
parent bdd9388c42
commit 62c9e62edc
10 changed files with 20 additions and 48 deletions

View File

@ -18,7 +18,7 @@ func NewRouter(b Backend) router.Router {
r.routes = []router.Route{
router.NewOptionsRoute("/{anyroute:.*}", optionsHandler),
router.NewGetRoute("/_ping", pingHandler),
router.NewGetRoute("/events", r.getEvents),
router.Cancellable(router.NewGetRoute("/events", r.getEvents)),
router.NewGetRoute("/info", r.getInfo),
router.NewGetRoute("/version", r.getVersion),
router.NewPostRoute("/auth", r.postAuth),