fix: return response as application/json (#59)
This commit is contained in:
parent
7bbb56a328
commit
840aaf64ff
@ -144,6 +144,7 @@ func routeHandler() (http.Handler, error) {
|
|||||||
|
|
||||||
fn := func(w http.ResponseWriter, r *http.Request) {
|
fn := func(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Server", serverName)
|
w.Header().Set("Server", serverName)
|
||||||
|
w.Header().Set("Content-type", "application/json")
|
||||||
mux.ServeHTTP(w, r)
|
mux.ServeHTTP(w, r)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user