don't panic during a request when configuring repository middleware. Return a 500 with an appropriate error

Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
David Lawrence 2015-03-09 10:55:52 -07:00
parent b5a63d75ea
commit 3853e66f4b
3 changed files with 53 additions and 26 deletions

View file

@ -300,7 +300,7 @@ type Middleware struct {
// Name the middleware registers itself as
Name string `yaml:"name"`
// Flag to disable middleware easily
Disabled bool `yaml:"Disabled,omitempty"`
Disabled bool `yaml:"disabled,omitempty"`
// Map of parameters that will be passed to the middleware's initialization function
Options Parameters `yaml:"options"`
}