File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 99
1010 "handler/function"
1111 // "github.com/alexellis/golang-http-template/template/golang-http/function"
12- "github.com/openfaas-incubator/go-function-sdk"
12+ handler "github.com/openfaas-incubator/go-function-sdk"
1313)
1414
1515func makeRequestHandler () func (http.ResponseWriter , * http.Request ) {
@@ -31,6 +31,7 @@ func makeRequestHandler() func(http.ResponseWriter, *http.Request) {
3131 req := handler.Request {
3232 Body : input ,
3333 Header : r .Header ,
34+ Method : r .Method ,
3435 }
3536
3637 result , resultErr := function .Handle (req )
Original file line number Diff line number Diff line change 99
1010 "handler/function"
1111 // "github.com/alexellis/golang-http-template/template/golang-http/function"
12- "github.com/openfaas-incubator/go-function-sdk"
12+ handler "github.com/openfaas-incubator/go-function-sdk"
1313)
1414
1515func makeRequestHandler () func (http.ResponseWriter , * http.Request ) {
@@ -31,6 +31,7 @@ func makeRequestHandler() func(http.ResponseWriter, *http.Request) {
3131 req := handler.Request {
3232 Body : input ,
3333 Header : r .Header ,
34+ Method : r .Method ,
3435 }
3536
3637 result , resultErr := function .Handle (req )
You can’t perform that action at this time.
0 commit comments