import requests_oauthlib (a dependency)
[yelp-api-cdsw] / requests_oauthlib / utils.py
diff --git a/requests_oauthlib/utils.py b/requests_oauthlib/utils.py
new file mode 100644 (file)
index 0000000..239e0d9
--- /dev/null
@@ -0,0 +1,9 @@
+from __future__ import unicode_literals
+import os
+
+
+def is_secure_transport(uri):
+    """Check if the uri is over ssl."""
+    if os.environ.get('DEBUG'):
+        return True
+    return uri.lower().startswith('https://')

Benjamin Mako Hill || Want to submit a patch?