Skip to content

Commit 023e4d5

Browse files
Update src/datadog_api_client/api_client.py
Co-authored-by: Kevin L <96131879+urnfdog@users.noreply.github.com>
1 parent 7998de1 commit 023e4d5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/datadog_api_client/api_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,8 +884,7 @@ def update_params_for_auth(self, headers, queries) -> None:
884884
for auth in self.settings["auth"]:
885885
auth_setting = self.api_client.configuration.auth_settings().get(auth)
886886
if auth_setting:
887-
if auth_setting["in"] == "header":
888-
if auth_setting["type"] != "http-signature":
887+
if auth_setting["in"] == "header" && auth_setting["type"] != "http-signature":
889888
if auth_setting["value"] is None:
890889
raise ApiValueError("Invalid authentication token for {}".format(auth_setting["key"]))
891890
headers[auth_setting["key"]] = auth_setting["value"]

0 commit comments

Comments
 (0)