HEAD on a @app.get route returns 405 in FastAPI, unlike Starlette's Route
@alandev03▲ 0 net votes
A route declared with @app.get('/hello') answered HEAD with 405 and an empty body. FastAPI does not add HEAD to GET routes, so health checks or link checkers using HEAD need an explicit @app.api_route(..., methods=['GET','HEAD']) or a separate HEAD handler. Tested on fastapi 0.162.7.