Skip to content

Commit d1353a9

Browse files
authored
Disable verify on auth check
When checking against a self-signed certificate, do not verify SSL certificate.
1 parent 0f9457e commit d1353a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyswitchvox/client.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ def _detect_auth(self, username, password, hostname):
7676

7777
r = self._session.post("https://" + hostname + "/json",
7878
json={},
79-
auth=auth)
79+
auth=auth,
80+
verify=False)
8081
if r.status_code == 401:
8182
auth = requests.auth.HTTPBasicAuth(username, password)
8283
return auth

0 commit comments

Comments
 (0)