rack-auth-simples 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack/auth/simples/rules.rb +2 -2
- data/lib/rack-auth-simples/version.rb +1 -1
- metadata +2 -2
@@ -62,7 +62,7 @@ module Rack
|
|
62
62
|
if @opts[:fail] == :forbidden
|
63
63
|
fail = [403, {'Content-Type' => 'text/plain' }, ['Forbidden'] ]
|
64
64
|
else
|
65
|
-
fail = [302, {'Location' => @opts[:fail] }, [] ]
|
65
|
+
fail = [302, {'Content-Type' => '', 'Location' => @opts[:fail] }, [] ]
|
66
66
|
end
|
67
67
|
|
68
68
|
if env['HTTP_X_FORWARDED_FOR']
|
@@ -151,7 +151,7 @@ module Rack
|
|
151
151
|
end
|
152
152
|
|
153
153
|
def set_cookie url = nil
|
154
|
-
headers = {'Location' => ( url || @opts[:return_url] ) }
|
154
|
+
headers = {'Content-Type' => '', 'Location' => ( url || @opts[:return_url] ) }
|
155
155
|
Rack::Utils.set_cookie_header!(headers, @opts[:cookie_name], cookie)
|
156
156
|
return [302, headers, ['']]
|
157
157
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-auth-simples
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ipaddr_list
|