From 73c98ef9dbb51635fe76ec39d90dc300535d7b24 Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Wed, 11 Sep 2013 17:12:20 +0200 Subject: [PATCH] allow setting hsts for Rack::SSL --- lib/travis/web/app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/travis/web/app.rb b/lib/travis/web/app.rb index 0fc33d75..069524b2 100644 --- a/lib/travis/web/app.rb +++ b/lib/travis/web/app.rb @@ -33,7 +33,7 @@ class Travis::Web::App def build(options = {}) builder = Rack::Builder.new if options[:environment] == 'production' - builder.use Rack::SSL + builder.use Rack::SSL, hsts: Travis.config.ssl.hsts || true end builder.use Rack::Deflater builder.use Rack::Head