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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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)
}