Skip to content

Commit b680757

Browse files
committed
fix: covert argument type in jwt.encode from ProtectedHeader to dict
1 parent 900f0ee commit b680757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/a2a/utils/signing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def agent_card_signer(agent_card: AgentCard) -> AgentCard:
7575
payload=payload_dict,
7676
key=signing_key,
7777
algorithm=protected_header.get('alg', 'HS256'),
78-
headers=protected_header,
78+
headers=dict(protected_header),
7979
)
8080

8181
# The result of jwt.encode is a compact serialization: HEADER.PAYLOAD.SIGNATURE

0 commit comments

Comments
 (0)