summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile3
-rw-r--r--cmd/rr/main.go4
-rw-r--r--service/http/request.go13
3 files changed, 7 insertions, 13 deletions
diff --git a/Dockerfile b/Dockerfile
index 833707b7..c857515f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,7 +5,8 @@ COPY . /src
WORKDIR /src
RUN set -x \
- && apk add --no-cache bash git \
+ && apt-get update -y \
+ && apt-get install -y bash git \
&& go version \
&& bash ./build.sh \
&& test -f ./.rr.yaml
diff --git a/cmd/rr/main.go b/cmd/rr/main.go
index 72498017..54a1f060 100644
--- a/cmd/rr/main.go
+++ b/cmd/rr/main.go
@@ -43,10 +43,6 @@ 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/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
}