fixed global variable reference when ssl verification is off (#230)

* fixed global variable reference when ssl verification is off

* moved 'global warned' to inside the function
This commit is contained in:
Kevin Frans
2016-06-29 17:59:46 -07:00
committed by Greg Brockman
parent 15afd9c54a
commit 7708cf2bcb

View File

@@ -25,6 +25,7 @@ class RequestsClient(object):
self.session = requests.Session()
def request(self, method, url, headers, post_data=None, files=None):
global warned
kwargs = {}
# Really, really only turn this off while debugging.