This commit is contained in:
binwiederhier
2026-03-17 07:50:28 -04:00
parent 6b11bc7468
commit a47d692cbf
3 changed files with 12 additions and 8 deletions
+4
View File
@@ -154,6 +154,10 @@ func uriEncode(s string) string {
return buf.String()
}
func isHTTPSuccess(resp *http.Response) bool {
return resp.StatusCode/100 == 2
}
func sha256Hex(data []byte) string {
h := sha256.Sum256(data)
return hex.EncodeToString(h[:])