Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: allow health check endpoint to respond to HEAD requests #4310

Closed
james2doyle opened this issue Feb 8, 2024 · 3 comments
Closed

Comments

@james2doyle
Copy link

I'm currently using that endpoint to check the status of my server on Pockethost. Currently, it looks like /api/health will respond to HEAD requests with 404.

I think it would be ideal if it just responded with a 2xx code instead of 404. And ideally an empty body.

@motdde
Copy link

motdde commented Feb 9, 2024

Hello @james2doyle ,

Would there be a specific use case where the current GET request wouldn't be the ideal (work as intended)?

@james2doyle
Copy link
Author

james2doyle commented Feb 9, 2024 via email

@ganigeorgiev
Copy link
Member

Support for HEAD /api/health was added in master and it will be available with the next minor release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants