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:
parent
f00054bddf
commit
22e8d607ad
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue