rack-private 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,7 +28,7 @@ And provide your own template.
28
28
  use Rack::Private :code => 'secret', :template_path => Rails.root.join("app/templates/private.html")
29
29
  ```
30
30
 
31
- == Note on Patches/Pull Requests
31
+ ### Note on Patches/Pull Requests ###
32
32
 
33
33
  * Fork the project.
34
34
  * Make your feature addition or bug fix.
@@ -16,7 +16,7 @@ module Rack
16
16
  if request.post? && code_valid?(request.params["private_code"])
17
17
  request.session[:private_code] = request.params["private_code"]
18
18
  body = "<html><body>Secret code is valid.</body></html>"
19
- [307, { 'Content-Type' => 'text/html', 'Location' => '/' }, [body]] # Redirect if code is valid
19
+ [303, { 'Content-Type' => 'text/html', 'Location' => '/' }, [body]] # Redirect if code is valid
20
20
  else
21
21
  render_private_form
22
22
  end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class Private
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rack-private
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.6
5
+ version: 0.1.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thibaud Guillaume-Gentil