summaryrefslogtreecommitdiff
path: root/plugins/http/response.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-11-25 21:56:26 +0300
committerValery Piashchynski <[email protected]>2020-11-25 21:56:26 +0300
commit1b0b033bcf4969e401b0c34b82171aa0b60b12cf (patch)
tree9cfe13b67613e69140bf29d320a1754cf2f7c9b7 /plugins/http/response.go
parent2918cfca6d9579125257bfc9f5655537a63ec82a (diff)
Add mock logger, test for errors in log
Diffstat (limited to 'plugins/http/response.go')
-rw-r--r--plugins/http/response.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/http/response.go b/plugins/http/response.go
index b0023b59..e3ac2756 100644
--- a/plugins/http/response.go
+++ b/plugins/http/response.go
@@ -4,6 +4,7 @@ import (
"io"
"net/http"
"strings"
+ "sync"
"github.com/spiral/roadrunner/v2"
)
@@ -18,6 +19,7 @@ type Response struct {
// associated Body payload.
Body interface{}
+ sync.Mutex
}
// NewResponse creates new response based on given pool payload.