diff --git a/kiota_abstractions/request_information.py b/kiota_abstractions/request_information.py index 1d369c2a..091c7006 100644 --- a/kiota_abstractions/request_information.py +++ b/kiota_abstractions/request_information.py @@ -123,9 +123,8 @@ def try_add_request_header(self, key: str, value: str) -> bool: lowercase_key = key.lower() if lowercase_key in self.headers: return False - else: - self.headers[lowercase_key] = {str(value)} - return True + self.headers[lowercase_key] = {str(value)} + return True return False def remove_request_headers(self, key: str) -> None: