diff --git a/OTXv2.py b/OTXv2.py index 33f4692..d96655a 100755 --- a/OTXv2.py +++ b/OTXv2.py @@ -91,7 +91,7 @@ class OTXv2(object): def __init__(self, api_key, proxy=None, server="https://otx.alienvault.com", project="SDK", user_agent=None): self.key = api_key self.server = server - self.proxies = {'http': proxy} if proxy else {} + self.proxies = {'http': proxy, 'https': proxy} if proxy else {} self.request_session = None self.headers = { 'X-OTX-API-KEY': self.key,