diff options
author | George Claghorn <george@basecamp.com> | 2018-10-19 13:11:13 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-10-19 13:11:19 -0400 |
commit | dbeef18b3ff04ce9ae8a53511f2afd0c7bae99e1 (patch) | |
tree | 8d411b134bcfcbe916b2f35cb686aa6b40389e01 /app/controllers | |
parent | f33ccec86c02205cc82dd14dea24a5ad3f27f502 (diff) | |
download | rails-dbeef18b3ff04ce9ae8a53511f2afd0c7bae99e1.tar.gz rails-dbeef18b3ff04ce9ae8a53511f2afd0c7bae99e1.tar.bz2 rails-dbeef18b3ff04ce9ae8a53511f2afd0c7bae99e1.zip |
Rely on the 204 No Content default response
Diffstat (limited to 'app/controllers')
3 files changed, 0 insertions, 3 deletions
diff --git a/app/controllers/action_mailbox/ingresses/amazon/inbound_emails_controller.rb b/app/controllers/action_mailbox/ingresses/amazon/inbound_emails_controller.rb index 53b9bd07ec..557d1aeb04 100644 --- a/app/controllers/action_mailbox/ingresses/amazon/inbound_emails_controller.rb +++ b/app/controllers/action_mailbox/ingresses/amazon/inbound_emails_controller.rb @@ -7,7 +7,6 @@ class ActionMailbox::Ingresses::Amazon::InboundEmailsController < ActionMailbox: def create ActionMailbox::InboundEmail.create_and_extract_message_id! params.require(:content) - head :no_content end private diff --git a/app/controllers/action_mailbox/ingresses/postfix/inbound_emails_controller.rb b/app/controllers/action_mailbox/ingresses/postfix/inbound_emails_controller.rb index d34257f9e9..72303378a9 100644 --- a/app/controllers/action_mailbox/ingresses/postfix/inbound_emails_controller.rb +++ b/app/controllers/action_mailbox/ingresses/postfix/inbound_emails_controller.rb @@ -6,7 +6,6 @@ class ActionMailbox::Ingresses::Postfix::InboundEmailsController < ActionMailbox def create ActionMailbox::InboundEmail.create_and_extract_message_id! request.body.read - head :no_content end private diff --git a/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb b/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb index 19c3b1b2c4..f31845d8cd 100644 --- a/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb +++ b/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb @@ -6,6 +6,5 @@ class ActionMailbox::Ingresses::Sendgrid::InboundEmailsController < ActionMailbo def create ActionMailbox::InboundEmail.create_and_extract_message_id! params.require(:email) - head :no_content end end |