mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-13 15:19:29 +01:00
Merge pull request #1965 from jmullan/feature/fix_ssl_check
Fix argument to turn SSL cert checking on and off
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user