breach-mitigation-rails 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/breach_mitigation/length_hiding.rb +1 -1
- data/lib/breach_mitigation/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 480a732f16dc3032e48ef2db07f80824f1c0e51d
|
4
|
+
data.tar.gz: edbfde41c332657ae98a6aa1dcd83dc223d32191
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48dc6f96c379c4004550d99bfe01b68af776aa8692dbb8bb4c874dd2f5ebe569a55285f4d427b29953a112955ca34b51ea3fb81a0a70805092a7f428a7afc5c5
|
7
|
+
data.tar.gz: 06fa934194687b5fda391691c1baf2e238012ed401e9a41358dbc1020a4a71c6e4c87145249262855c253cec404b46b807ad1166751d35abe0bb74a782c0bd64
|
@@ -10,7 +10,7 @@ module BreachMitigation
|
|
10
10
|
status, headers, body = @app.call(env)
|
11
11
|
|
12
12
|
# Only pad HTML/XHTML documents
|
13
|
-
if headers['Content-Type'] =~ /text\/x?html/ && env
|
13
|
+
if headers['Content-Type'] =~ /text\/x?html/ && Rack::Request.new(env).ssl?
|
14
14
|
# Copy the existing response to a new object
|
15
15
|
response = Rack::Response.new(body, status, headers)
|
16
16
|
|