From dce94dbc6b9dc86f2b87783cf25051da828ff320 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 16 Jan 2019 20:42:23 -0800 Subject: Fix unknown methods content stream (json on body in custom method applied) --- service/http/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3