We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cae095a commit b11d5f6Copy full SHA for b11d5f6
recaptcha.go
@@ -63,6 +63,10 @@ func V2(opts Options) flamego.Handler {
63
// V3 returns a middleware handler that injects recaptcha.RecaptchaV3
64
// into the request context, which is used for verifying reCAPTCHA V3 requests.
65
func V3(opts Options) flamego.Handler {
66
+ if opts.Client == nil {
67
+ opts.Client = http.DefaultClient
68
+ }
69
+
70
if opts.Secret == "" {
71
panic("recaptcha: empty secret")
72
}
0 commit comments