diff options
author | Valery Piashchynski <[email protected]> | 2020-05-20 11:13:35 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-05-20 11:13:35 +0300 |
commit | c51104bc7bc369e6e4dacc985ccb7dbf6b626ef6 (patch) | |
tree | 76bfe7524046a9db860fa98a22f10c1715a84520 /service/http | |
parent | 950b1ecbded8a21aca3eca68b8c6728dec2cca4d (diff) |
fix test failings
Diffstat (limited to 'service/http')
-rw-r--r-- | service/http/request.go | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/service/http/request.go b/service/http/request.go index 176279df..8da5440f 100644 --- a/service/http/request.go +++ b/service/http/request.go @@ -2,16 +2,16 @@ package http import ( "fmt" - json "github.com/json-iterator/go" - "github.com/sirupsen/logrus" - "github.com/spiral/roadrunner" - "github.com/spiral/roadrunner/service/http/attributes" "io/ioutil" - "log" "net" "net/http" "net/url" "strings" + + json "github.com/json-iterator/go" + "github.com/sirupsen/logrus" + "github.com/spiral/roadrunner" + "github.com/spiral/roadrunner/service/http/attributes" ) const ( @@ -95,9 +95,6 @@ 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 } |