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 705b9cb commit 54a487fCopy full SHA for 54a487f
stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/config.py
@@ -40,7 +40,7 @@ def _es_config() -> Dict[str, Any]:
40
config["http_auth"] = (u, p)
41
42
if api_key := os.getenv("ES_API_KEY"):
43
- config |= {"headers": {"x-api-key": api_key}}
+ config = {**config, **{"headers": {"x-api-key": api_key}}}
44
45
return config
46
0 commit comments