From 17226ba4f3880513e3ec8a03c902c2cc2e13189b Mon Sep 17 00:00:00 2001 From: PBadicean Date: Tue, 10 Oct 2023 18:50:28 +0300 Subject: [PATCH] Parameter data-s for recaptcha (#21) * added parameter data-s --------- Co-authored-by: kratzky --- api2captcha.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api2captcha.go b/api2captcha.go index 39b981a..4d2663a 100644 --- a/api2captcha.go +++ b/api2captcha.go @@ -125,6 +125,7 @@ type ( Enterprise bool Version string Action string + DataS string Score float64 } @@ -727,6 +728,9 @@ func (c *ReCaptcha) ToRequest() Request { if c.Action != "" { req.Params["action"] = c.Action } + if c.DataS != "" { + req.Params["data-s"] = c.DataS + } if c.Score != 0 { req.Params["min_score"] = strconv.FormatFloat(c.Score, 'f', -1, 64) }