diff options
author | Valery Piashchynski <[email protected]> | 2020-11-17 16:25:35 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-11-17 16:25:35 +0300 |
commit | 3cbdd3d3e44b3b4e72565d666391e3b732950774 (patch) | |
tree | 7c60fafe1c33076631e39fe26be187c9ca359a3e /plugins/http/response.go | |
parent | a57d064407e2ed7f35dd591101b5d421c64605e1 (diff) |
Get http working with new container
Diffstat (limited to 'plugins/http/response.go')
-rw-r--r-- | plugins/http/response.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/http/response.go b/plugins/http/response.go index 88848b9d..c3de434f 100644 --- a/plugins/http/response.go +++ b/plugins/http/response.go @@ -6,9 +6,9 @@ import ( "strings" json "github.com/json-iterator/go" + "github.com/spiral/roadrunner/v2" ) - // Response handles PSR7 response logic. type Response struct { // Status contains response status. @@ -22,7 +22,7 @@ type Response struct { } // NewResponse creates new response based on given rr payload. -func NewResponse(p *roadrunner.Payload) (*Response, error) { +func NewResponse(p roadrunner.Payload) (*Response, error) { r := &Response{body: p.Body} j := json.ConfigCompatibleWithStandardLibrary if err := j.Unmarshal(p.Context, r); err != nil { |