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: add HEAD route for '/' to support status checks #835

Merged
merged 1 commit into from Mar 28, 2024

Conversation

dahifi
Copy link
Contributor

@dahifi dahifi commented Mar 20, 2024

Services like uptime-robot use a HEAD request to do status checks; this discards the response body and returns only headers. I've added a head route on top of '/' that returns properly. Right now uvicorn returns a 405 method not allowed

This doesn't interfere with the GET wildcard route, but we can easily move this over to a /status route if so desired.

@tpatel tpatel merged commit 205305d into Chainlit:main Mar 28, 2024
6 checks passed
@dahifi dahifi deleted the uptime-robot branch April 8, 2024 17:21
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.

None yet

3 participants