Skip to content

fix(health): support HEAD on /health (was 405)#30

Merged
WayforthOfficial merged 1 commit into
mainfrom
fix/health-head-support
Jun 20, 2026
Merged

fix(health): support HEAD on /health (was 405)#30
WayforthOfficial merged 1 commit into
mainfrom
fix/health-head-support

Conversation

@WayforthOfficial

Copy link
Copy Markdown
Owner

/health only allowed GET, so HEAD probes returned 405. HEAD is the default method for several uptime monitors, so accept it.

  • @app.api_route("/health", methods=["GET", "HEAD"])
  • HEAD → bare 200 with empty body, short-circuiting before the catalog DB query (a HEAD probe only wants liveness).
  • GET response unchanged.

Verified: route advertises GET, HEAD; HEAD branch returns 200/empty-body without touching the pool. Independent of the UptimeRobot uptime work.

🤖 Generated with Claude Code

/health only allowed GET, so HEAD probes got 405. HEAD is the default method
for several uptime monitors, so accept it: @app.api_route methods=[GET, HEAD],
returning a bare 200 with empty body for HEAD (skips the catalog DB work — a
HEAD probe only wants a liveness signal). GET response unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@WayforthOfficial WayforthOfficial merged commit b5d941a into main Jun 20, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants