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

webhook: Add missing Content-Type for Pong

This commit is contained in:
diamondburned 2022-08-22 12:37:18 -07:00
parent dcfc9b19d1
commit 9e9f90a652
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -120,6 +120,7 @@ func (s *InteractionServer) handle(w http.ResponseWriter, r *http.Request) {
switch ev.Data.(type) {
case *discord.PingInteraction:
w.Header().Set("Content-Type", "application/json")
json.NewEncoder(w).Encode(api.InteractionResponse{
Type: api.PongInteraction,
})