[Pkg-privacy-commits] [onionshare] 215/256: use the actual OnionShare version as the Server header string
Ulrike Uhlig
ulrike at moszumanska.debian.org
Fri May 26 12:53:43 UTC 2017
This is an automated email from the git hooks/post-receive script.
ulrike pushed a commit to branch master
in repository onionshare.
commit 16f4d5f3ca70fdbd4e2cf4dc8c5e2371ac9c9255
Author: Miguel Jacq <mig at mig5.net>
Date: Sun May 21 10:30:37 2017 +1000
use the actual OnionShare version as the Server header string
---
onionshare/web.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/onionshare/web.py b/onionshare/web.py
index 36901f3..68b7fcb 100644
--- a/onionshare/web.py
+++ b/onionshare/web.py
@@ -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):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git
More information about the Pkg-privacy-commits
mailing list