diff --git a/main.go b/main.go index fabcfb5..96442f1 100644 --- a/main.go +++ b/main.go @@ -23,6 +23,7 @@ func fetch(u string, fn ...func(s string) string) string { if err != nil { return "" } + defer res.Body.Close() html := string(s) for _, f := range fn { html = f(html)