mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Permit OPTIONS request against any url, fixes #19398
Signed-off-by: Aidan Hobson Sayers <aidanhs@cantab.net>
This commit is contained in:
parent
3233f45609
commit
ada7920479
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ func NewRouter(b Backend) router.Router {
|
||||||
}
|
}
|
||||||
|
|
||||||
r.routes = []router.Route{
|
r.routes = []router.Route{
|
||||||
local.NewOptionsRoute("/", optionsHandler),
|
local.NewOptionsRoute("/{anyroute:.*}", optionsHandler),
|
||||||
local.NewGetRoute("/_ping", pingHandler),
|
local.NewGetRoute("/_ping", pingHandler),
|
||||||
local.NewGetRoute("/events", r.getEvents),
|
local.NewGetRoute("/events", r.getEvents),
|
||||||
local.NewGetRoute("/info", r.getInfo),
|
local.NewGetRoute("/info", r.getInfo),
|
||||||
|
|
Loading…
Reference in a new issue