Skip to content

Commit 1c90489

Browse files
committed
Allow transport to assume port
Since serverless projects provide users with an endpoint that does not include a port, we should assume HTTPS means port 443.
1 parent da6887e commit 1c90489

File tree

1 file changed

+1
-1
lines changed
  • elasticsearch_serverless/_sync/client

1 file changed

+1
-1
lines changed

elasticsearch_serverless/_sync/client/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def host_to_node_config(host: _TYPE_HOST) -> NodeConfig:
123123
if isinstance(host, NodeConfig):
124124
return host
125125
elif isinstance(host, str):
126-
return url_to_node_config(host)
126+
return url_to_node_config(host, use_default_ports_for_scheme=True)
127127
elif isinstance(host, Mapping):
128128
return host_mapping_to_node_config(host)
129129
else:

0 commit comments

Comments
 (0)