diff options
author | Wolfy-J <[email protected]> | 2019-01-17 09:40:38 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2019-01-17 09:40:38 +0300 |
commit | d2e81c131dbf6fbd61bf757e2d1deb9f4384dfce (patch) | |
tree | d2a728b7ce2e96bc795bec222f851186a880103d | |
parent | 09db9ec8300912668dea72b90c07d3e1cb37bd88 (diff) | |
parent | 20e92bb8cab9fdbe7972d4d42e990ee1d12180e4 (diff) |
Merge pull request #94 from Alex-Bond/bugfix/unknown_method_content
Fix unknown methods content stream (json on body in custom method set)
-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..80e29f49 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" || r.Method == "OPTIONS" { return contentNone } |