Commit d75aca5
committed
Make header lookup case-insensitive
Normalize the requested header name before comparing so mixed-case callers still match HTTP headers case-insensitively.
Constraint: Copilot review comment on PR #128 flagged _get_header as unexpectedly case-sensitive for mixed-case lookup names.
Rejected: broader header abstraction | a one-line normalization preserves the current helper boundary.
Confidence: high
Scope-risk: narrow
Tested: uv run --extra server pytest tests/unittests/server/test_error_utils.py tests/unittests/server/test_invoker.py tests/unittests/server/test_agui_protocol.py tests/unittests/integration/test_langgraph_events.py -q => 102 passed, 1 warning
Tested: uv run --extra server pytest tests/unittests/integration/test_langgraph_to_agent_event.py -q => 32 passed
Tested: git diff --check && uv run ruff check agentrun/server/error_utils.py tests/unittests/server/test_error_utils.py => passed
Change-Id: I23e62a3b01e88c1b39f8669f89490b1c7f5e9ddf
Co-developed-by: Codex <noreply@openai.com>
Not-tested: full repository test suite and remote CI pending
Signed-off-by: congxiao.wxx <congxiao.wxx@alibaba-inc.com>1 parent f5d7639 commit d75aca5
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | | - | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments