mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
use the actual OnionShare version as the Server header string
This commit is contained in:
parent
38ee7fde21
commit
16f4d5f3ca
@ -47,14 +47,14 @@ file_info = []
|
||||
zip_filename = None
|
||||
zip_filesize = None
|
||||
|
||||
|
||||
strings.load_strings(common)
|
||||
security_headers = [
|
||||
('Content-Security-Policy', 'default-src \'self\'; style-src \'unsafe-inline\'; img-src \'self\' data:;'),
|
||||
('X-Frame-Options', 'DENY'),
|
||||
('X-Xss-Protection', '1; mode=block'),
|
||||
('X-Content-Type-Options', 'nosniff'),
|
||||
('Referrer-Policy', 'no-referrer'),
|
||||
('Server', 'Onion')
|
||||
('Server', strings._('version_string').format(common.get_version()))
|
||||
]
|
||||
|
||||
def set_file_info(filenames, processed_size_callback=None):
|
||||
|
Loading…
Reference in New Issue
Block a user