From 5b6269f1f505bd3ebda676a9e9c90f7b346deb78 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Tue, 19 May 2020 15:17:23 +0300 Subject: - sample config --- service/http/request.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'service/http') 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 } -- cgit v1.2.3