...
|
...
|
@@ -153,7 +153,7 @@ end |
|
|
|
|
|
--forbid user agent
|
|
|
function forbid_ua()
|
|
|
local forbid_ua_table = {'python-requests'}
|
|
|
local forbid_ua_table = {'python%-requests'}
|
|
|
local ua = http_request.get_ua()
|
|
|
for i = 1, #forbid_ua_table do
|
|
|
if ua and string.find(ua, forbid_ua_table[i]) then
|
...
|
...
|
|