Browse Source

Disable debug when FLASK_DEBUG=False (#2155)

Convert FLASK_DEBUG envvar to lower before test if in tuple
pull/1493/merge
Kim Blomqvist 8 years ago committed by David Lord
parent
commit
3fc8be5a4e
  1. 2
      flask/helpers.py

2
flask/helpers.py

@ -58,7 +58,7 @@ def get_debug_flag(default=None):
val = os.environ.get('FLASK_DEBUG')
if not val:
return default
return val not in ('0', 'false', 'no')
return val.lower() not in ('0', 'false', 'no')
def _endpoint_from_view_func(view_func):

Loading…
Cancel
Save