update
This commit is contained in:
parent
af3fa25a14
commit
fc640552d1
1 changed files with 4 additions and 2 deletions
|
@ -71,13 +71,15 @@ function M.Validate(g_captcha_res, remote_ip)
|
|||
remoteip = remote_ip
|
||||
}
|
||||
|
||||
data = table_to_encoded_url(body)
|
||||
ngx.log(ngx.ALERT, "BODY: " .. data)
|
||||
ngx.log(ngx.ALERT, "URL: " .. recaptcha_verify_url)
|
||||
local httpc = http.new()
|
||||
|
||||
httpc:set_timeout(3)
|
||||
|
||||
local res, err = httpc:request_uri(recaptcha_verify_url, {
|
||||
method = "POST",
|
||||
body = table_to_encoded_url(body),
|
||||
body = data,
|
||||
headers = {
|
||||
["Content-Type"] = "application/x-www-form-urlencoded",
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue