Fix typo
This commit is contained in:
parent
bc42497cb7
commit
1e0d9e184c
@ -69,7 +69,7 @@ func CreateRouter(cfg *config.Config) *mux.Router {
|
|||||||
|
|
||||||
func secureIfNecessary(cfg *config.Config, handler http.HandlerFunc) http.HandlerFunc {
|
func secureIfNecessary(cfg *config.Config, handler http.HandlerFunc) http.HandlerFunc {
|
||||||
if cfg.Security != nil && cfg.Security.IsValid() {
|
if cfg.Security != nil && cfg.Security.IsValid() {
|
||||||
return security.Handler(serviceStatusesHandler, cfg.Security)
|
return security.Handler(handler, cfg.Security)
|
||||||
}
|
}
|
||||||
return handler
|
return handler
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user