Created
July 8, 2016 21:29
-
-
Save jagwire/3f9f11b4699a815909c559561d9d93cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'sinatra' | |
set :port, 80 | |
set :bind, '0.0.0.0' | |
get "/*" do | |
host = request.host | |
path = request.path | |
redirect "https://#{host}#{path}"; | |
end | |
post "/*" do | |
host = request.host | |
path = request.path | |
redirect "https://#{host}#{path}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment