diff --git a/verify.go b/verify.go index b34e34f..59e0c23 100644 --- a/verify.go +++ b/verify.go @@ -37,7 +37,7 @@ func (frc *Client) VerifyCaptchaResponse(ctx context.Context, captchaResponse st req.Header.Set("Content-Type", "application/json") req.Header.Set("X-Api-Key", frc.APIKey) - req.Header.Set("X-Frc-Sdk", fmt.Sprintf("friendly-captcha-go-sdk@%s", Version())) + req.Header.Set("X-Frc-Sdk", fmt.Sprintf("friendly-captcha-go-sdk@%s", Version)) resp, err := frc.HTTPClient.Do(req) if err != nil { diff --git a/version.go b/version.go index fe9bc14..dd6152a 100644 --- a/version.go +++ b/version.go @@ -1,12 +1,3 @@ package friendlycaptcha -import ( - "runtime/debug" -) - -func Version() string { - if bi, ok := debug.ReadBuildInfo(); ok { - return bi.Main.Version - } - return "unknown" -} +var Version = "0.2.3"