Set the right content-type

This commit is contained in:
Kevin Keogh
2017-09-15 16:20:29 -04:00
parent 1daa63ab11
commit e889a85b4c

View File

@@ -27,6 +27,7 @@ func index(w http.ResponseWriter, r *http.Request) {
options["MonteCarlo"] = mcOpt options["MonteCarlo"] = mcOpt
options["ClosedForm"] = bsOpt options["ClosedForm"] = bsOpt
w.Header().Set("Content-Type", "application/json")
json.NewEncoder(w).Encode(options) json.NewEncoder(w).Encode(options)
} else if r.Method == "GET" { } else if r.Method == "GET" {