rack-ssl-enforcer 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,8 +6,8 @@ module Rack
6
6
  end
7
7
 
8
8
  def call(env)
9
- if enforce_ssl?(env) && !ssl_request?(env)
10
- scheme = 'https'
9
+ if enforce_ssl?(env)
10
+ scheme = 'https' unless ssl_request?(env)
11
11
  elsif ssl_request?(env) && @options[:strict]
12
12
  scheme = 'http'
13
13
  end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class SslEnforcer
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-ssl-enforcer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tobias Matthies
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-30 00:00:00 +02:00
18
+ date: 2010-08-31 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -52,7 +52,7 @@ dependencies:
52
52
  version: 2.11.3
53
53
  type: :development
54
54
  version_requirements: *id002
55
- description: Write a gem description!
55
+ description: Rack::SslEnforcer is a simple Rack middleware to enforce ssl connections
56
56
  email:
57
57
  - tm@mit2m.de
58
58
  executables: []