font_assets 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/font_assets/middleware.rb +1 -1
- data/lib/font_assets/version.rb +1 -1
- metadata +1 -1
@@ -21,7 +21,7 @@ module FontAssets
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def call(env)
|
24
|
-
@ssl_request = env
|
24
|
+
@ssl_request = Rack::Request.new(env).scheme == "https"
|
25
25
|
# intercept the "preflight" request
|
26
26
|
if env["REQUEST_METHOD"] == "OPTIONS"
|
27
27
|
return [200, access_control_headers, []]
|
data/lib/font_assets/version.rb
CHANGED