Repository navigation
Commit bae5790
committed
Fix API boot crash: WebDAV HEAD route collided with Fastify's auto-HEAD
Fastify auto-generates a HEAD route from every GET route, so registering HEAD explicitly threw
FST_ERR_DUPLICATED_ROUTE at startup — the API never came up, surfacing as a 502 behind nginx.
Drop the explicit HEAD route; the auto-HEAD reuses the same handler (which special-cases HEAD).
Verified by actually booting the server (app.ready + inject): OPTIONS/PROPFIND/HEAD on /dav and
GET /health all respond instead of crashing.1 parent 1ed24de commit bae5790
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
283 | 282 | | |
284 | 283 | | |
285 | 284 | | |
| |||
291 | 290 | | |
292 | 291 | | |
293 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
294 | 296 | | |
295 | 297 | | |
296 | 298 | | |
| |||
0 commit comments