1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Fixed bug in SessionsController#destroy which caused all XHR requests, regardless of `Accept' header, to be treated as 'text/html'.

This commit is contained in:
Alan Larkin 2013-01-06 03:50:26 +00:00
parent 84b8188db9
commit f2de7bf84c

View file

@ -27,10 +27,10 @@ class Devise::SessionsController < DeviseController
# We actually need to hardcode this as Rails default responder doesn't
# support returning empty response on GET request
respond_to do |format|
format.any(*navigational_formats) { redirect_to redirect_path }
format.all do
head :no_content
end
format.any(*navigational_formats) { redirect_to redirect_path }
end
end