Skip to content

Commit

Permalink
report version manually (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
rokostik authored Feb 27, 2024
1 parent e2989be commit 8dad580
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
11 changes: 1 addition & 10 deletions version.go
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 8dad580

Please sign in to comment.