summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2020-05-19 15:17:23 +0300
committerWolfy-J <[email protected]>2020-05-19 15:17:23 +0300
commit5b6269f1f505bd3ebda676a9e9c90f7b346deb78 (patch)
tree15ea9274a7963816d004a95660fec8df09e6ee42 /service
parentfee8dbb4a6723068050c3396c61180a0733cf988 (diff)
- sample config
Diffstat (limited to 'service')
-rw-r--r--service/http/request.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/service/http/request.go b/service/http/request.go
index acf80893..176279df 100644
--- a/service/http/request.go
+++ b/service/http/request.go
@@ -7,6 +7,7 @@ import (
"github.com/spiral/roadrunner"
"github.com/spiral/roadrunner/service/http/attributes"
"io/ioutil"
+ "log"
"net"
"net/http"
"net/url"
@@ -94,6 +95,9 @@ func NewRequest(r *http.Request, cfg *UploadsConfig) (req *Request, err error) {
return req, err
case contentMultipart:
+ b, _ := ioutil.ReadAll(r.Body)
+ log.Print(string(b))
+
if err = r.ParseMultipartForm(defaultMaxMemory); err != nil {
return nil, err
}