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 298cc5a commit 7d87b91Copy full SHA for 7d87b91
openapi_python_client/templates/client.py.jinja
@@ -56,6 +56,6 @@ class AuthenticatedClient(Client):
56
auth_header_name: str = "Authorization"
57
58
def get_headers(self) -> Dict[str, str]:
59
- auth_header_value = f"{self.prefix} {self.token}" if self.prefix else self.token
60
"""Get headers to be used in authenticated endpoints"""
61
- return {self.auth_header_name: auth_header_value, **self.headers}
+ auth_header_value = f"{self.prefix} {self.token}" if self.prefix else self.token
+ return {self.auth_header_name: auth_header_value, **self.headers}
0 commit comments