diff options
author | Wolfy-J <[email protected]> | 2019-06-24 13:35:57 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-06-24 13:35:57 +0300 |
commit | dbd44f6e68f91daa56a983559ed1d4a9359f1d69 (patch) | |
tree | c36b2aa2e200c42fc3f0eaa4de1961b10890fd4e | |
parent | 5dc7dd6b231ccea05ffbec0df47ecaa866192308 (diff) |
polishing fastcgi integration, polishing headers service (splitted from http)
-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 { |