rack-auth-simples 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
@@ -1,7 +1,7 @@
1
1
  module Rack
2
2
  module Auth
3
3
  class Simples
4
- VERSION = "0.0.8"
4
+ VERSION = "0.0.9"
5
5
  end
6
6
  end
7
7
  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.8
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-20 00:00:00.000000000 Z
12
+ date: 2013-01-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ipaddr_list