summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Titov <[email protected]>2019-10-02 00:23:35 +0300
committerGitHub <[email protected]>2019-10-02 00:23:35 +0300
commit85a2a735ea51252f6e9cf396b99e0e28f195f9da (patch)
tree1a2d541c58d95ac764b26f9739e7984021dcfc8f
parentf77f891846f3a9bf05920812d38e49039db46bce (diff)
parent84bd03bd0891a57cf2fe26c20402c5d98a96d41f (diff)
Merge pull request #187 from moeinpaki/feature/body-content-on-http-get-request
handle body content on http GET method
-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 e56acb2a..98508342 100644
--- a/service/http/request.go
+++ b/service/http/request.go
@@ -151,7 +151,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" || r.Method == "OPTIONS" {
+ if r.Method == "HEAD" || r.Method == "OPTIONS" {
return contentNone
}