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:
parent
0eafa3d229
commit
b03100454f
1 changed files with 20 additions and 20 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue