This commit is contained in:
Travis
2013-01-16 00:49:58 -08:00
parent e4b65da0a0
commit c11da41fea

View File

@@ -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)