Only send env details if in debug mode

This commit is contained in:
shortcutme 2019-04-11 01:29:56 +02:00
parent 1ce4f99b80
commit 58a4bf479c
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -809,7 +809,7 @@ class UiRequest(object):
import sys import sys
import gevent import gevent
if details: if details and config.debug:
details = {key: val for key, val in list(self.env.items()) if hasattr(val, "endswith") and "COOKIE" not in key} details = {key: val for key, val in list(self.env.items()) if hasattr(val, "endswith") and "COOKIE" not in key}
details["version_zeronet"] = "%s r%s" % (config.version, config.rev) details["version_zeronet"] = "%s r%s" % (config.version, config.rev)
details["version_python"] = sys.version details["version_python"] = sys.version