diff options
-rw-r--r-- | cmd/rr/main.go | 2 | ||||
-rw-r--r-- | service/headers/service.go | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cmd/rr/main.go b/cmd/rr/main.go index 196bede3..6f325fb4 100644 --- a/cmd/rr/main.go +++ b/cmd/rr/main.go @@ -24,6 +24,7 @@ package main import ( rr "github.com/spiral/roadrunner/cmd/rr/cmd" + "github.com/spiral/roadrunner/service/headers" // services (plugins) "github.com/spiral/roadrunner/service/env" @@ -41,6 +42,7 @@ func main() { rr.Container.Register(env.ID, &env.Service{}) rr.Container.Register(rpc.ID, &rpc.Service{}) rr.Container.Register(http.ID, &http.Service{}) + rr.Container.Register(headers.ID, &headers.Service{}) rr.Container.Register(static.ID, &static.Service{}) rr.Container.Register(limit.ID, &limit.Service{}) diff --git a/service/headers/service.go b/service/headers/service.go index 9060e9ff..3877aa04 100644 --- a/service/headers/service.go +++ b/service/headers/service.go @@ -6,10 +6,8 @@ import ( "strconv" ) -const ( - // ID contains default service name. - ID = "headers" -) +// ID contains default service name. +const ID = "headers" // Service serves static files. Potentially convert into middleware? type Service struct { |