File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 4
4
import boto3
5
5
from time import perf_counter as pc
6
6
from urllib .parse import urlparse
7
+ import ssl
7
8
8
9
import re
9
10
@@ -40,7 +41,7 @@ def __get_property(self, property_name):
40
41
if property_name in self .event :
41
42
return self .event [property_name ]
42
43
if property_name in os .environ :
43
- return os .env [property_name ]
44
+ return os .environ [property_name ]
44
45
if property_name in self .defaults :
45
46
return self .defaults [property_name ]
46
47
return None
@@ -109,7 +110,7 @@ def execute(self):
109
110
request = http .client .HTTPConnection (location , timeout = int (self .timeout ))
110
111
111
112
if url .scheme == 'https' :
112
- request = http .client .HTTPSConnection (location , timeout = int (self .timeout ))
113
+ request = http .client .HTTPSConnection (location , timeout = int (self .timeout ), context = ssl . _create_unverified_context () )
113
114
114
115
if 'HTTP_DEBUG' in os .environ and os .environ ['HTTP_DEBUG' ] == '1' :
115
116
request .set_debuglevel (1 )
You can’t perform that action at this time.
0 commit comments