diff --git a/welcome_runner.go b/welcome_runner.go index 4a46fc3..92f7849 100644 --- a/welcome_runner.go +++ b/welcome_runner.go @@ -45,10 +45,11 @@ func runWelcomePage() { url := fmt.Sprintf("%s/welcome/beer_available", baseURL) req, _ := http.NewRequest("PUT", url, bytes.NewBuffer(body)) req.Header.Add("Authorization", welcomeAPIToken) - _, err = http.DefaultClient.Do(req) + resp, err := http.DefaultClient.Do(req) if err != nil { log.Printf("[WelcomeRunner] %s", err) } + resp.Body.Close() } }