mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
bug
This commit is contained in:
@@ -200,7 +200,7 @@ func AddWorker(w http.ResponseWriter, req *http.Request) {
|
|||||||
routerHeader := req.Header.Get("Iron-Router")
|
routerHeader := req.Header.Get("Iron-Router")
|
||||||
if routerHeader == "register" {
|
if routerHeader == "register" {
|
||||||
route := Route{}
|
route := Route{}
|
||||||
if !common.ReadJSON(w, r, &route) {
|
if !common.ReadJSON(w, req, &route) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fmt.Println("body read into route:", route)
|
fmt.Println("body read into route:", route)
|
||||||
|
|||||||
Reference in New Issue
Block a user