We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1e5d0a commit 13df325Copy full SHA for 13df325
1 file changed
src/a2a/server/request_handlers/grpc_handler.py
@@ -54,7 +54,9 @@ def _get_metadata_value(
54
context: grpc.aio.ServicerContext, key: str
55
) -> list[str]:
56
md = context.invocation_metadata()
57
- raw_values: list[str | bytes] = md.get_all(key) if isinstance(md, Metadata) else []
+ raw_values: list[str | bytes] = (
58
+ md.get_all(key) if isinstance(md, Metadata) else []
59
+ )
60
61
return [e if isinstance(e, str) else e.decode('utf-8') for e in raw_values]
62
0 commit comments