History

Use protocol-relative URLs

Thibaut committed 11 years ago

Commit 55686301 parent 61d1d492 files · +4 −3Browse files

Showing the changes to lib (1 of 2 files). Show all

Unified · Split

lib/app.rb+3−2
@@ -38,6 +38,7 @@ class App < Sinatra::Application · 37 unmodified lines
3838 config.environment = sprockets
3939 config.prefix = "/#{assets_prefix}"
4040 config.public_path = public_folder
41+ config.protocol = :relative
4142 end
4243 end
4344
@@ -57,7 +58,7 @@ class App < Sinatra::Application · 13 unmodified lines
5758
5859 configure :production do
5960 set :static, false
60− set :docs_host, 'http://docs.devdocs.io'
61+ set :docs_host, '//docs.devdocs.io'
6162
6263 use Rack::ConditionalGet
6364 use Rack::ETag
@@ -180,7 +181,7 @@ class App < Sinatra::Application · 116 unmodified lines
180181 end
181182
182183 get '/s/shopify' do
183− redirect 'http://www.shopify.com/careers?utm_source=devdocs&utm_medium=banner&utm_campaign=devdocs'
184+ redirect 'https://www.shopify.com/careers?utm_source=devdocs&utm_medium=banner&utm_campaign=devdocs'
184185 end
185186
186187 get %r{\A/feed(?:\.atom)?\z} do