diff options
author | Alex <[email protected]> | 2019-01-16 20:42:23 -0800 |
---|---|---|
committer | Alex <[email protected]> | 2019-01-16 20:42:23 -0800 |
commit | dce94dbc6b9dc86f2b87783cf25051da828ff320 (patch) | |
tree | 5806a9327d3c16af603f53b173e6849bd2f63cf3 /service | |
parent | 09db9ec8300912668dea72b90c07d3e1cb37bd88 (diff) |
Fix unknown methods content stream (json on body in custom method applied)
Diffstat (limited to 'service')
-rw-r--r-- | service/http/request.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/http/request.go b/service/http/request.go index eb5c05bd..696ce7ff 100644 --- a/service/http/request.go +++ b/service/http/request.go @@ -148,7 +148,7 @@ func (r *Request) Payload() (p *roadrunner.Payload, err error) { // contentType returns the payload content type. func (r *Request) contentType() int { - if r.Method != "POST" && r.Method != "PUT" && r.Method != "PATCH" && r.Method != "DELETE" { + if r.Method == "GET" && r.Method == "HEAD" { return contentNone } |