🍱 Fix lint (#211)

This commit is contained in:
maxlerebourg
2025-01-29 08:14:15 +01:00
committed by GitHub
parent 0e9620bfe9
commit c34d7f4617

View File

@@ -138,7 +138,7 @@ func (c *Client) Validate(r *http.Request) (bool, error) {
c.log.Error("captcha:Validate " + err.Error())
}
}()
if !strings.Contains(res.Header.Get("content-type"), "application/json") {
if !strings.Contains(res.Header.Get("Content-Type"), "application/json") {
c.log.Debug("captcha:Validate responseType:noJson")
return false, nil
}