Set the right content-type
This commit is contained in:
1 parent
1daa63ab11
commit
e889a85b4c
1 file changed
+1
@@ -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" {
|
||||||
|
|||||||
Reference in new issue
Block a user