Return {"status": "OK"} for the directory

This commit is contained in:
Finn Herzfeld 2018-12-05 14:02:49 -08:00
parent 3ac410c3df
commit 61b92529ab

View file

@ -33,6 +33,8 @@ func main() {
defer r.Body.Close() defer r.Body.Close()
crash(err) crash(err)
log.Printf("%s", b) log.Printf("%s", b)
w.Header().Set("Content-Type", "application/json")
w.Write([]byte("{\"status\": \"OK\"}\n"))
}) })
log.Fatal(http.ListenAndServe(":8082", nil)) log.Fatal(http.ListenAndServe(":8082", nil))
} }