1
0
mirror of https://github.com/docker/cli.git synced 2026-01-15 07:40:57 +03:00

Merge pull request #19569 from aidanhs/aphs-fix-options-api

Permit OPTIONS request against any url, fixes #19398
Upstream-commit: fd5013e4fa18e895abd33da714189dbeb0cbf576
Component: engine
This commit is contained in:
Arnaud Porterie
2016-01-26 13:39:51 -08:00

View File

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