Lint antibot.lua

This commit is contained in:
Théophile Diot 2023-03-21 11:54:59 +01:00
parent 16842fef10
commit f335364fc6
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
1 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,5 @@
local _M = {}
_M.__index = _M
local _M = {}
_M.__index = _M
local utils = require "utils"
local datastore = require "datastore"
@ -128,7 +128,6 @@ function _M:access()
-- Method is suspicious, let's deny the request
return true, "unsupported HTTP method for Antibot", true, utils.get_deny_status()
end
function _M:challenge_resolved(antibot)
@ -232,7 +231,6 @@ function _M:display_challenge(antibot, challenge_uri)
ngx.say(html)
return true, "displayed challenge"
end
function _M:check_challenge(antibot)