summaryrefslogtreecommitdiff
path: root/service/http/response.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-03-21 01:03:13 +0300
committerValery Piashchynski <[email protected]>2020-03-21 01:03:13 +0300
commit314b161695daae7dfa8739afb1865a3be5ff53ca (patch)
treec1342d6c7a1f9ab0f786c2a4572ac0d0e2b818df /service/http/response.go
parent96e6686c5fa55e5b055fe3d7a4635e272e69c3ac (diff)
Update GHA, go1.14 vendored mode
Update Makefile, add go vendor (go 1.14 + php hack) Update usage of new json package
Diffstat (limited to 'service/http/response.go')
-rw-r--r--service/http/response.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/http/response.go b/service/http/response.go
index 38ac4417..0942b3d2 100644
--- a/service/http/response.go
+++ b/service/http/response.go
@@ -24,7 +24,8 @@ type Response struct {
// NewResponse creates new response based on given rr payload.
func NewResponse(p *roadrunner.Payload) (*Response, error) {
r := &Response{body: p.Body}
- if err := json.Unmarshal(p.Context, r); err != nil {
+ j := json.ConfigCompatibleWithStandardLibrary
+ if err := j.Unmarshal(p.Context, r); err != nil {
return nil, err
}