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

feat: Update fastify to expose API for HEAD requests. #47

Closed

Conversation

hsubra89
Copy link

This patch enables a fastify config to enable HEAD requests. Readiness and liveness checks should respond correctly to HEAD requests since only the status codes are usually relevant for checking the status of services via tools like curl.

Eg:

https://hub.docker.com/r/stefanevinance/wait-for-200/
https://github.com/stefan-evinance/wait-for-200

Tests have been updated to verify this behaviour.

This patch enables a fastify config to enable `HEAD` requests. Readiness and liveness checks should respond correctly to `HEAD` requests since only the status codes are usually relevant for checking the status of services via tools like curl.

Eg:

https://hub.docker.com/r/stefanevinance/wait-for-200/

https://github.com/stefan-evinance/wait-for-200

Tests have been updated to verify this behaviour.
@coveralls
Copy link

coveralls commented Jun 12, 2022

Pull Request Test Coverage Report for Build 169

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 88.35%

Totals Coverage Status
Change from base Build 168: 0.0%
Covered Lines: 140
Relevant Lines: 152

💛 - Coveralls

@hsubra89
Copy link
Author

@gajus This is currently blocking me from using the latest version of lightship. If merged, could you consider releasing a minor or patch revision?

@hsubra89
Copy link
Author

@gajus Any update on this please?

@gajus
Copy link
Owner

gajus commented Oct 18, 2022

Sometimes notifications get lost :-(

Looking at this now

@gajus gajus closed this in 2f85c6c Oct 18, 2022
@gajus
Copy link
Owner

gajus commented Oct 18, 2022

🎉 This issue has been resolved in version 7.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gajus gajus added the released label Oct 18, 2022
@hsubra89 hsubra89 deleted the hsubra89/respond-to-head-requests branch December 17, 2022 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants