Commit 904745560aa8665f9076374b2c436329c8d658d3

Authored by Dmitriy Zaporozhets
2 parents b512fbc0 8a0bfa49

Merge branch 'exclude_subdomains_in_header' of /home/git/repositories/gitlab/gitlabhq

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/application_controller.rb
@@ -162,7 +162,7 @@ class ApplicationController < ActionController::Base @@ -162,7 +162,7 @@ class ApplicationController < ActionController::Base
162 headers['X-XSS-Protection'] = '1; mode=block' 162 headers['X-XSS-Protection'] = '1; mode=block'
163 headers['X-UA-Compatible'] = 'IE=edge' 163 headers['X-UA-Compatible'] = 'IE=edge'
164 headers['X-Content-Type-Options'] = 'nosniff' 164 headers['X-Content-Type-Options'] = 'nosniff'
165 - headers['Strict-Transport-Security'] = 'max-age=31536000; includeSubDomains' if Gitlab.config.gitlab.https 165 + headers['Strict-Transport-Security'] = 'max-age=31536000' if Gitlab.config.gitlab.https
166 end 166 end
167 167
168 def add_gon_variables 168 def add_gon_variables