mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
bugs
This commit is contained in:
@@ -24,7 +24,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
"runtime"
|
"runtime"
|
||||||
"flag"
|
"flag"
|
||||||
"io/ioutil"
|
// "io/ioutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
var config struct {
|
var config struct {
|
||||||
@@ -216,7 +216,7 @@ func AddWorker(w http.ResponseWriter, req *http.Request) {
|
|||||||
} else {
|
} else {
|
||||||
r2 := Route2{}
|
r2 := Route2{}
|
||||||
decoder := json.NewDecoder(req.Body)
|
decoder := json.NewDecoder(req.Body)
|
||||||
err = decoder.Decode(&r2)
|
err := decoder.Decode(&r2)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
common.SendError(w, 400, fmt.Sprintln("Bad json:", err))
|
common.SendError(w, 400, fmt.Sprintln("Bad json:", err))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user