Commit cb521ea
test(server): cover unimplemented methods in the refused-request check
HEAD and OPTIONS are refused by `_handle_unsupported_request`, which runs
downstream of session registration just like the validation failures already
covered here, and echoes the session id back in the same way. Both therefore
leave a live session behind on an unpatched tree.
They need no production change: the discard keys off the establishing
response status, so 405 is already subsumed by `>= 400`. Pinning them stops a
later refactor from narrowing that to an enumerated list of validation
failures and silently reopening the method-independent half of the leak.
Reported by @pete-builds on #3228, reproduced against released 1.29.0.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 264e719 commit cb521ea
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
190 | 192 | | |
191 | 193 | | |
192 | 194 | | |
| |||
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
202 | 209 | | |
203 | 210 | | |
204 | 211 | | |
| |||
0 commit comments