Skip to content

Commit

Permalink
do not set default s3 client endpoint url
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Jan 8, 2024
1 parent 2e8d77e commit bb7788b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rio_tiler/io/stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def aws_get_object(

# AWS_S3_ENDPOINT and AWS_HTTPS are GDAL config options of vsis3 driver
# https://gdal.org/user/virtual_file_systems.html#vsis3-aws-s3-files
endpoint_url = os.environ.get("AWS_S3_ENDPOINT", "s3.amazonaws.com")
endpoint_url = os.environ.get("AWS_S3_ENDPOINT", None)
if endpoint_url:
use_https = os.environ.get("AWS_HTTPS", "YES")
if use_https.upper() in ["YES", "TRUE", "ON"]:
Expand Down

0 comments on commit bb7788b

Please sign in to comment.