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

Added Content-Type to default failed login redirection.

This commit is contained in:
Sam Schenkman-Moore 2010-10-11 21:20:30 -04:00
parent 0eafa3d229
commit b03100454f

View file

@ -19,7 +19,7 @@ module OmniAuth
:path_prefix => '/auth', :path_prefix => '/auth',
:on_failure => Proc.new do |env, message_key| :on_failure => Proc.new do |env, message_key|
new_path = "#{OmniAuth.config.path_prefix}/failure?message=#{message_key}" new_path = "#{OmniAuth.config.path_prefix}/failure?message=#{message_key}"
[302, {'Location' => "#{new_path}"}, []] [302, {'Location' => "#{new_path}", 'Content-Type'=> 'text/html'}, []]
end, end,
:form_css => Form::DEFAULT_CSS :form_css => Form::DEFAULT_CSS
} }