0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2025-01-27 23:04:32 -05:00

Respond with 200 on /

This commit is contained in:
Alex Plugaru 2017-06-07 17:51:25 -07:00
parent 50f6f640b2
commit 4932422f35

View file

@ -99,6 +99,11 @@ func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return // ignore favicon requests
}
if r.URL.Path == "/" {
fmt.Fprint(w, "OK")
return
}
if r.URL.Path == "/health-check" {
fmt.Fprint(w, "OK")
return