Skip to content

Commit

Permalink
changed the ssl verify to follow proper connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt committed Nov 18, 2015
1 parent 7b3f321 commit 0842329
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/slycat/web/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,10 @@ class Connection(object):
"""Encapsulates a set of requests to the given host. Additional keyword
arguments must be compatible with the Python Requests library,
http://docs.python-requests.org/en/latest"""
def __init__(self, host="http://localhost:8092", ssl_verify=True, **keywords):
def __init__(self, host="http://localhost:8092", **keywords):
self.host = host
self.keywords = keywords
self.session = requests.Session()
self.ssl_verify = ssl_verify

def request(self, method, path, **keywords):
"""Makes a request with the given HTTP method and path, returning the body of
Expand All @@ -114,7 +113,7 @@ def request(self, method, path, **keywords):
log_message = "{} {} {}".format(keywords.get("auth", ("", ""))[0], method, uri)

try:
response = self.session.request(method, uri, verify=self.ssl_verify, **keywords)
response = self.session.request(method, uri, **keywords)

log_message += " => {} {}".format(response.status_code, response.raw.reason)

Expand Down

0 comments on commit 0842329

Please sign in to comment.