summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/rr/main.go4
-rw-r--r--go.mod1
-rw-r--r--service/http/request.go4
3 files changed, 8 insertions, 1 deletions
diff --git a/cmd/rr/main.go b/cmd/rr/main.go
index 54a1f060..72498017 100644
--- a/cmd/rr/main.go
+++ b/cmd/rr/main.go
@@ -43,6 +43,10 @@ import (
)
func main() {
+
+ rr.Container.Register(logger.ID, &logrus.ConfigProvider{})
+ rr.Container.Register(config.ID, &cobra.ConfigPrivider{})
+
rr.Container.Register(env.ID, &env.Service{})
rr.Container.Register(rpc.ID, &rpc.Service{})
rr.Container.Register(http.ID, &http.Service{})
diff --git a/go.mod b/go.mod
index d62efa39..c6cf8346 100644
--- a/go.mod
+++ b/go.mod
@@ -24,5 +24,4 @@ require (
github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a
github.com/yookoala/gofast v0.4.0
golang.org/x/net v0.0.0-20200222125558-5a598a2470a0
- golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect
)
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
}