Fix argument to turn SSL cert checking on and off

This commit is contained in:
Jesse Mullan
2014-10-27 10:16:43 -07:00
parent 23055da02d
commit 5c1223adfb

View File

@@ -47,7 +47,7 @@ def request_response(url, method="get", auto_raise=True,
# Disable verification of SSL certificates if requested. Note: this could
# pose a security issue!
kwargs["verify"] = headphones.CONFIG.VERIFY_SSL_CERT
kwargs["verify"] = bool(headphones.CONFIG.VERIFY_SSL_CERT)
# Map method to the request.XXX method. This is a simple hack, but it allows
# requests to apply more magic per method. See lib/requests/api.py.
@@ -235,4 +235,4 @@ def server_message(response):
if len(message) > 150:
message = message[:150] + "..."
logger.debug("Server responded with message: %s", message)
logger.debug("Server responded with message: %s", message)