update go, dependencies, catch Fprint and Close errors (#138)

Co-authored-by: Thomas von Dein <tom@vondein.org>
This commit is contained in:
T.v.Dein
2025-05-04 12:05:59 +02:00
committed by GitHub
parent 4030d04b06
commit 15b2e7f2a7
9 changed files with 73 additions and 46 deletions

View File

@@ -80,7 +80,9 @@ func drainBody(resp *http.Response) {
panic(err)
}
resp.Body.Close()
if err := resp.Body.Close(); err != nil {
panic(err)
}
}
}
}