Commit f31c7f5
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 9970afd commit f31c7f5
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
186 | 188 | | |
187 | 189 | | |
188 | 190 | | |
| |||
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
198 | 205 | | |
199 | 206 | | |
200 | 207 | | |
| |||
0 commit comments