fix: return response as application/json (#59)

This commit is contained in:
Jakub Podhorský
2020-05-07 16:24:12 +02:00
committed by GitHub
parent 7bbb56a328
commit 840aaf64ff

View File

@ -144,6 +144,7 @@ func routeHandler() (http.Handler, error) {
fn := func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Server", serverName)
w.Header().Set("Content-type", "application/json")
mux.ServeHTTP(w, r)
}