summaryrefslogtreecommitdiff
path: root/service/http/request.go
diff options
context:
space:
mode:
authorAlex <[email protected]>2019-01-16 21:02:05 -0800
committerAlex <[email protected]>2019-01-16 21:02:05 -0800
commit20e92bb8cab9fdbe7972d4d42e990ee1d12180e4 (patch)
treed2a728b7ce2e96bc795bec222f851186a880103d /service/http/request.go
parentdce94dbc6b9dc86f2b87783cf25051da828ff320 (diff)
Add OPTIONS, switch from && to ||.
Diffstat (limited to 'service/http/request.go')
-rw-r--r--service/http/request.go2
1 files changed, 1 insertions, 1 deletions
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
}