Set the right content-type
This commit is contained in:
1
serve.go
1
serve.go
@@ -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