Browse Source

thocc

master
SeraphJACK 3 years ago
parent
commit
fee26bd73d
Signed by: SeraphJACK <seraphjack@outlook.com> GPG Key ID: 14162B46567AB06F
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      http/result.go

+ 1
- 1
http/result.go View File

@@ -12,8 +12,8 @@ func checkResult(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(500)
_, _ = fmt.Fprintf(w, "internal server error")
} else {
w.WriteHeader(200)
w.Header().Set("Content-Type", "application/json; charset=utf-8")
w.WriteHeader(200)
_, _ = w.Write(res)
}
}

Loading…
Cancel
Save