use the actual OnionShare version as the Server header string

This commit is contained in:
Miguel Jacq 2017-05-21 10:30:37 +10:00
parent 38ee7fde21
commit 16f4d5f3ca
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -47,14 +47,14 @@ file_info = []
zip_filename = None zip_filename = None
zip_filesize = None zip_filesize = None
strings.load_strings(common)
security_headers = [ security_headers = [
('Content-Security-Policy', 'default-src \'self\'; style-src \'unsafe-inline\'; img-src \'self\' data:;'), ('Content-Security-Policy', 'default-src \'self\'; style-src \'unsafe-inline\'; img-src \'self\' data:;'),
('X-Frame-Options', 'DENY'), ('X-Frame-Options', 'DENY'),
('X-Xss-Protection', '1; mode=block'), ('X-Xss-Protection', '1; mode=block'),
('X-Content-Type-Options', 'nosniff'), ('X-Content-Type-Options', 'nosniff'),
('Referrer-Policy', 'no-referrer'), ('Referrer-Policy', 'no-referrer'),
('Server', 'Onion') ('Server', strings._('version_string').format(common.get_version()))
] ]
def set_file_info(filenames, processed_size_callback=None): def set_file_info(filenames, processed_size_callback=None):