Only send env details if in debug mode
This commit is contained in:
parent
1ce4f99b80
commit
58a4bf479c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue