summaryrefslogtreecommitdiff
path: root/plugins/http/response.go
diff options
context:
space:
mode:
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.