diff options
Diffstat (limited to 'service/http/request.go')
-rw-r--r-- | service/http/request.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/service/http/request.go b/service/http/request.go index d8bd4d30..acf80893 100644 --- a/service/http/request.go +++ b/service/http/request.go @@ -135,12 +135,13 @@ func (r *Request) Close(log *logrus.Logger) { func (r *Request) Payload() (p *roadrunner.Payload, err error) { p = &roadrunner.Payload{} - if p.Context, err = json.Marshal(r); err != nil { + j := json.ConfigCompatibleWithStandardLibrary + if p.Context, err = j.Marshal(r); err != nil { return nil, err } if r.Parsed { - if p.Body, err = json.Marshal(r.body); err != nil { + if p.Body, err = j.Marshal(r.body); err != nil { return nil, err } } else if r.body != nil { |