diff options
author | Devin Sevilla <devin.sevilla@rd.io> | 2014-05-09 12:02:37 -0700 |
---|---|---|
committer | Devin Sevilla <devin.sevilla@rd.io> | 2014-05-09 12:02:37 -0700 |
commit | 196450140fcff0692eb9c31e85f79df017ff2316 (patch) | |
tree | 830e2836d57242711da0e548f5ba692cd9e84e8f /oauthlib/oauth2/rfc6749/utils.py | |
parent | 45d7967ff0630de1c88e2de12fd59fde40eb0dec (diff) | |
download | oauthlib-196450140fcff0692eb9c31e85f79df017ff2316.tar.gz |
Use a more specific env variable for insecure transports
Diffstat (limited to 'oauthlib/oauth2/rfc6749/utils.py')
-rw-r--r-- | oauthlib/oauth2/rfc6749/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oauthlib/oauth2/rfc6749/utils.py b/oauthlib/oauth2/rfc6749/utils.py index b2e12e1..67f8473 100644 --- a/oauthlib/oauth2/rfc6749/utils.py +++ b/oauthlib/oauth2/rfc6749/utils.py @@ -86,6 +86,6 @@ def generate_age(issue_time): def is_secure_transport(uri): """Check if the uri is over ssl.""" - if os.environ.get('DEBUG'): + if os.environ.get('OAUTHLIB_INSECURE_REDIRECTS'): return True return uri.lower().startswith('https://') |