Skip to content

Commit

Permalink
Fix JWT headers
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-stakewise committed Apr 25, 2024
1 parent d15e78f commit 5574100
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sw_utils/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ def get_execution_client(
use_cache: bool = True,
jwt_secret: str | None = None,
) -> AsyncWeb3:
headers = {}
headers = {
'Content-Type': 'application/json',
}

if jwt_secret:
token = _create_jwt_auth_token(jwt_secret)
headers['Authorization'] = f'Bearer {token}'
Expand Down

0 comments on commit 5574100

Please sign in to comment.