diff --git a/grimoire.go b/grimoire.go index 8b13bee..23a13bd 100644 --- a/grimoire.go +++ b/grimoire.go @@ -21,13 +21,15 @@ func withTitleAndStreamsAndSentry(next http.Handler, cfg Config, sentry *Sentry) return http.HandlerFunc(handlerFunc) } -type Sentry struct {} +type Sentry struct { +} func (self *Sentry) GetStatus(url string) int { resp, err := http.Get(url) if err != nil { return 500 } else { + resp.Body.Close() return resp.StatusCode } }