1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-17 12:23:08 +00:00

api: Fix InteractionServer's writeError

This commit is contained in:
diamondburned 2022-08-22 03:21:12 -07:00
parent f00054bddf
commit 22e8d607ad
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -31,6 +31,8 @@ func writeError(w http.ResponseWriter, code int, err error) {
log.Panicln("cannot marshal error response:", err)
}
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(code)
w.Write(b)
}