rack-ssl 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rack-ssl might be problematic. Click here for more details.
- data/lib/rack/ssl.rb +2 -1
- metadata +36 -52
data/lib/rack/ssl.rb
CHANGED
@@ -50,10 +50,11 @@ module Rack
|
|
50
50
|
url = URI(req.url)
|
51
51
|
url.scheme = "https"
|
52
52
|
url.host = @host if @host
|
53
|
+
status = %w[GET HEAD].include?(req.request_method) ? 301 : 307
|
53
54
|
headers = hsts_headers.merge('Content-Type' => 'text/html',
|
54
55
|
'Location' => url.to_s)
|
55
56
|
|
56
|
-
[
|
57
|
+
[status, headers, []]
|
57
58
|
end
|
58
59
|
|
59
60
|
# http://tools.ietf.org/html/draft-hodges-strict-transport-sec-02
|
metadata
CHANGED
@@ -1,82 +1,66 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-ssl
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.3.3
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 3
|
9
|
-
- 2
|
10
|
-
version: 1.3.2
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Joshua Peek
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-01-29 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: rack
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
33
22
|
type: :runtime
|
34
|
-
|
35
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
description: ! ' Rack middleware to force SSL/TLS.
|
31
|
+
|
32
|
+
'
|
36
33
|
email: josh@joshpeek.com
|
37
34
|
executables: []
|
38
|
-
|
39
35
|
extensions: []
|
40
|
-
|
41
36
|
extra_rdoc_files: []
|
42
|
-
|
43
|
-
files:
|
37
|
+
files:
|
44
38
|
- lib/rack/ssl.rb
|
45
39
|
- LICENSE
|
46
40
|
- README.md
|
47
|
-
has_rdoc: true
|
48
41
|
homepage: https://github.com/josh/rack-ssl
|
49
42
|
licenses: []
|
50
|
-
|
51
43
|
post_install_message:
|
52
44
|
rdoc_options: []
|
53
|
-
|
54
|
-
require_paths:
|
45
|
+
require_paths:
|
55
46
|
- lib
|
56
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
48
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
|
63
|
-
- 0
|
64
|
-
version: "0"
|
65
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ! '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
54
|
none: false
|
67
|
-
requirements:
|
68
|
-
- -
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
|
71
|
-
segments:
|
72
|
-
- 0
|
73
|
-
version: "0"
|
55
|
+
requirements:
|
56
|
+
- - ! '>='
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
74
59
|
requirements: []
|
75
|
-
|
76
60
|
rubyforge_project: rack-ssl
|
77
|
-
rubygems_version: 1.
|
61
|
+
rubygems_version: 1.8.24
|
78
62
|
signing_key:
|
79
63
|
specification_version: 3
|
80
64
|
summary: Force SSL/TLS in your app.
|
81
65
|
test_files: []
|
82
|
-
|
66
|
+
has_rdoc:
|