Skip to content

Commit

Permalink
x-api-key not set for anonymous
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Nov 28, 2023
1 parent 9ab0e67 commit 3112ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpcontribs-client/mpcontribs/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ def _load(protocol, host, headers_json, project, version):
projects = sorted(d["name"] for d in resp["data"])
projects_json = ujson.dumps(projects)
# expand regex-based query parameters for `data` columns
spec = _expand_params(protocol, host, version, projects_json, apikey=headers["x-api-key"])
spec = _expand_params(protocol, host, version, projects_json, apikey=headers.get("x-api-key"))
spec.http_client.session.headers.update(headers)
return spec

Expand Down

0 comments on commit 3112ea2

Please sign in to comment.