summaryrefslogtreecommitdiffstats
path: root/app/controllers/mail_handler_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-17 06:35:28 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-17 06:35:28 +0000
commitcad0036297bdecc13bcd5cb66f439081ca2bae9f (patch)
tree69b512a3feed4cbe400b56bee82fb6f70c6e25b8 /app/controllers/mail_handler_controller.rb
parentff50094d3e45723e761c6980dfe1c5204facbd92 (diff)
downloadredmine-cad0036297bdecc13bcd5cb66f439081ca2bae9f.tar.gz
redmine-cad0036297bdecc13bcd5cb66f439081ca2bae9f.zip
Use head instead of render :nothing => true.
git-svn-id: http://svn.redmine.org/redmine/trunk@15687 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/mail_handler_controller.rb')
-rw-r--r--app/controllers/mail_handler_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/mail_handler_controller.rb b/app/controllers/mail_handler_controller.rb
index 4949cc2d5..1b7cddfac 100644
--- a/app/controllers/mail_handler_controller.rb
+++ b/app/controllers/mail_handler_controller.rb
@@ -27,9 +27,9 @@ class MailHandlerController < ActionController::Base
options = params.dup
email = options.delete(:email)
if MailHandler.receive(email, options)
- render :nothing => true, :status => :created
+ head :created
else
- render :nothing => true, :status => :unprocessable_entity
+ head :unprocessable_entity
end
end