We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b89aaf commit 434b4d0Copy full SHA for 434b4d0
awswrangler/opensearch/_utils.py
@@ -33,6 +33,10 @@ def _strip_endpoint(endpoint: str) -> str:
33
return uri_schema.sub("", endpoint).strip().strip("/")
34
35
36
+def _is_https(port: int) -> bool:
37
+ return port == 443
38
+
39
40
def connect(
41
host: str,
42
port: Optional[int] = 443,
@@ -95,8 +99,8 @@ def connect(
95
99
host=_strip_endpoint(host),
96
100
port=port,
97
101
http_auth=http_auth,
98
- use_ssl=True,
- verify_certs=True,
102
+ use_ssl=_is_https(port),
103
+ verify_certs=_is_https(port),
104
connection_class=RequestsHttpConnection,
105
timeout=30,
106
max_retries=10,
0 commit comments