FIX: Accept HEAD requests for mandrill webhook (#17180)

Madrill uses a HEAD request for validation, accept it.
This commit is contained in:
Wolftallemo
2022-07-29 02:26:31 -04:00
committed by GitHub
parent c9a3aba5a2
commit f590b62a31
3 changed files with 15 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ Discourse::Application.routes.draw do
post "webhooks/mailgun" => "webhooks#mailgun"
post "webhooks/mailjet" => "webhooks#mailjet"
post "webhooks/mandrill" => "webhooks#mandrill"
get "webhooks/mandrill" => "webhooks#mandrill_head"
post "webhooks/postmark" => "webhooks#postmark"
post "webhooks/sendgrid" => "webhooks#sendgrid"
post "webhooks/sparkpost" => "webhooks#sparkpost"