fix:#41 fixed lang

This commit is contained in:
Elmar Kresse
2024-06-24 10:25:34 +02:00
parent 3eb3fe2b5e
commit 381e5c6d2b

View File

@ -45,7 +45,7 @@ func GetHTMLWithClient(url string, client *http.Client) (string, error) {
if response.StatusCode != 200 { if response.StatusCode != 200 {
slog.Warn("While fetching the HTML document, the server responded with status code: ", "status", response.StatusCode) slog.Warn("While fetching the HTML document, the server responded with status code: ", "status", response.StatusCode)
return "", fmt.Errorf("Server responded with status code: %d", response.StatusCode) return "", fmt.Errorf("server responded with status code: %d", response.StatusCode)
} }
defer func(Body io.ReadCloser) { defer func(Body io.ReadCloser) {