From 20e92bb8cab9fdbe7972d4d42e990ee1d12180e4 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 16 Jan 2019 21:02:05 -0800 Subject: Add OPTIONS, switch from && to ||. --- service/http/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service/http/request.go') diff --git a/service/http/request.go b/service/http/request.go index 696ce7ff..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 == "GET" && r.Method == "HEAD" { + if r.Method == "GET" || r.Method == "HEAD" || r.Method == "OPTIONS" { return contentNone } -- cgit v1.2.3