gotify / server

A simple server for sending and receiving messages in real-time per WebSocket. (Includes a sleek web-ui)
https://gotify.net
Other
11.53k stars 641 forks source link

HEAD method on /health endpoint throw 404 error #687

Closed moinologics closed 2 months ago

moinologics commented 2 months ago

Can the issue be reproduced with the latest available release? (y/n) yes

Which one is the environment gotify server is running in?

What did you do? actually i'm using uptimerobot service to track uptime which make HEAD request by default to the given healthcheck endpoint (HEAD /health endpoint in our case). but as it is getting 404 so it is considering health endpoint to be not working.

What did you expect to see? it should return response with 200 http status code

What did you see instead? (Include screenshots, android logcat/request dumps if possible) 404 http status code

moinologics commented 2 months ago

raised a PR for fix https://github.com/gotify/server/pull/688