Skip to content

Commit 75849c0

Browse files
committed
Split headers by single space, handle trimming
1 parent 091499c commit 75849c0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/a2a/server/apps/jsonrpc/jsonrpc_app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ def build(self, request: Request) -> ServerCallContext:
104104
user=user,
105105
state=state,
106106
requested_extensions={
107-
ext
107+
stripped
108108
for h in request.headers.getlist(HTTP_EXTENSION_HEADER)
109-
for ext in h.split(', ')
109+
for ext in h.split(',')
110+
if (stripped := ext.strip())
110111
},
111112
)
112113

0 commit comments

Comments
 (0)