fix encoding

This commit is contained in:
nkanaev
2022-01-24 16:47:32 +00:00
parent e3e9542f1e
commit 52cc8ecbbd
4 changed files with 75 additions and 45 deletions

View File

@@ -50,16 +50,3 @@ func init() {
userAgent: "Yarr/1.0",
}
}
func GetHTTP(url string) (*http.Response, error) {
res, err := client.get(url)
if err != nil {
return nil, err
}
body, err := httpBody(res)
if err != nil {
return nil, err
}
res.Body = body
return res, nil
}