diff options
author | Valery Piashchynski <[email protected]> | 2020-11-18 12:55:28 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-11-18 12:55:28 +0300 |
commit | 49a7c06b4ed3605130c3d09e73b28822aa205465 (patch) | |
tree | dd66f4f2c4a752c796d3a19d20203f7914d65bb1 /plugins | |
parent | 2b395a5f1bd431a2a9c80c35a2ca5f42066c9ffd (diff) |
Remove old errors
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/http/plugin.go | 3 | ||||
-rw-r--r-- | plugins/server/tests/server_test.go | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/plugins/http/plugin.go b/plugins/http/plugin.go index 581455b3..e5ccabc4 100644 --- a/plugins/http/plugin.go +++ b/plugins/http/plugin.go @@ -18,6 +18,7 @@ import ( "github.com/spiral/roadrunner/v2/interfaces/log" factory "github.com/spiral/roadrunner/v2/interfaces/server" "github.com/spiral/roadrunner/v2/plugins/config" + "github.com/spiral/roadrunner/v2/plugins/http/attributes" "github.com/spiral/roadrunner/v2/util" "golang.org/x/net/http2" "golang.org/x/net/http2/h2c" @@ -272,7 +273,7 @@ func (s *Plugin) ServeHTTP(w http.ResponseWriter, r *http.Request) { w.Header().Add("Strict-Transport-Security", "max-age=31536000; includeSubDomains; preload") } - //r = attributes.Init(r) + r = attributes.Init(r) // chaining middleware f := s.handler.ServeHTTP diff --git a/plugins/server/tests/server_test.go b/plugins/server/tests/server_test.go index f917df5d..bc374a9e 100644 --- a/plugins/server/tests/server_test.go +++ b/plugins/server/tests/server_test.go @@ -273,9 +273,7 @@ func TestAppWrongRelay(t *testing.T) { } err = container.Init() - if err != nil { - t.Fatal(err) - } + assert.Error(t, err) _, err = container.Serve() assert.Error(t, err) |