From 66224fef353ddb628b70ff1f0aad28369af7b23a Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Mon, 15 Oct 2012 15:30:40 -0400 Subject: [PATCH] api: Verify certs for real Now that we have a CA-signed cert for the app. (imported from commit a2d8e95ea581d9af0ba6071b222e06ca82f0612c) --- common.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common.py b/common.py index 564d126..c2d0c7f 100644 --- a/common.py +++ b/common.py @@ -8,8 +8,6 @@ from os import path # Check that we have a recent enough version assert(requests.__version__ > '0.12') -cert = path.abspath(path.join(path.dirname(__file__), '../certs/humbug-self-signed.crt')) - class HumbugAPI(): def __init__(self, email, api_key, verbose=False, site="https://app.humbughq.com"): self.api_key = api_key @@ -24,7 +22,7 @@ class HumbugAPI(): try: res = requests.post(self.base_url + url, data=request, - verify=cert, + verify=True, auth=requests.auth.HTTPDigestAuth('tabbott', 'xxxxxxxxxxxxxxxxx')) if res.status_code == requests.codes.service_unavailable: