Permalink
Browse files

updating to use .ssl? instead of request.protocol

  • Loading branch information...
1 parent 2acedec commit b0a4079f570d8529f2f5085fea4face7f6ec9d9f @christopherhein christopherhein committed May 15, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/jammit/s3_assets_versioning.rb
@@ -63,10 +63,10 @@ def asset_host_proc
if Jammit.configuration.has_key?(:ssl)
protocol = Jammit.configuration[:ssl] ? "https://" : "http://"
else
- protocol = request.protocol
+ protocol = "https://"
end
- if request.protocol == "https://"
+ if request.ssl?
"#{protocol}#{asset_hostname_ssl}"
else
if asset_hostname.is_a?(Array)

0 comments on commit b0a4079

Please sign in to comment.