summaryrefslogtreecommitdiff
path: root/oauthlib/oauth2/rfc6749/utils.py
diff options
context:
space:
mode:
authorDevin Sevilla <devin.sevilla@rd.io>2014-05-09 12:02:37 -0700
committerDevin Sevilla <devin.sevilla@rd.io>2014-05-09 12:02:37 -0700
commit196450140fcff0692eb9c31e85f79df017ff2316 (patch)
tree830e2836d57242711da0e548f5ba692cd9e84e8f /oauthlib/oauth2/rfc6749/utils.py
parent45d7967ff0630de1c88e2de12fd59fde40eb0dec (diff)
downloadoauthlib-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.py2
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://')