Commit 88b8a17
authored
testserver: log error on "method not allowed" same as "not found" (#2933)
This extends the diagnostics we have for 404 to 405 errors.
Today, if you call testserver and there is no path registered, you'll
get 404 and a nice error message suggesting which setting to add to
config. If you call some path that is present but does not have handler
for the required method, you'll get 405 silently and without errors.
The deploy-artifact-path-type test had to be fixed since it relied on
undefined handler before and now it fails.1 parent b70cea9 commit 88b8a17
2 files changed
Lines changed: 10 additions & 1 deletion
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
230 | 232 | | |
231 | 233 | | |
232 | 234 | | |
| |||
0 commit comments