summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.md38
-rw-r--r--.github/ISSUE_TEMPLATE/feature_request.md20
-rw-r--r--cmd/rr/main.go4
-rw-r--r--service/http/request.go4
4 files changed, 66 insertions, 0 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 00000000..448a1aa4
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,38 @@
+---
+name: Bug report
+about: Create a report to help us improve
+title: "[BUG]"
+labels: B-bug, F-need-verification
+assignees: 48d90782
+
+---
+
+---
+name: Bug Report
+about: Issue in HTTP module <replace>
+labels: A-network <replace>
+---
+<!--
+Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
+along with any information you feel relevant to replicating the bug.
+-->
+
+I tried this code:
+
+```go
+<code>
+```
+
+I expected to see this happen: *explanation*
+
+Instead, this happened: *explanation*
+
+The version of RR used: *explanation*
+
+Errortrace, Backtrace or Panictrace
+```
+<backtrace>
+```
+
+</p>
+</details>
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 00000000..65ac962a
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,20 @@
+---
+name: Feature request
+about: Suggest an idea for this project
+title: "[FEATURE REQUEST]"
+labels: C-feature-request
+assignees: 48d90782, vvval, wolfy-j
+
+---
+
+**Is your feature request related to a problem? Please describe.**
+A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
+
+**Describe the solution you'd like**
+A clear and concise description of what you want to happen.
+
+**Describe alternatives you've considered**
+A clear and concise description of any alternative solutions or features you've considered.
+
+**Additional context**
+Add any other context or screenshots about the feature request here.
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/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
}