summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-22 13:08:26 +0300
committerWolfy-J <[email protected]>2018-06-22 13:08:26 +0300
commit82ac7d691bc9e6720c3e61eeb9683e2a4701aafb (patch)
treecc11210401f4a8811f9f2e78a6170c03650a4d4d /service
parent0e2cbb7b9c3e138a9551ddcab9399769ee68eaa1 (diff)
delete now support post payloads
Diffstat (limited to 'service')
-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 3082eeb5..9281a3f5 100644
--- a/service/http/request.go
+++ b/service/http/request.go
@@ -132,7 +132,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" {
+ if r.Method != "POST" && r.Method != "PUT" && r.Method != "PATCH" && r.Method != "DELETE" {
return contentNone
}