mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 23:38:10 -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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user