Showing
1 changed file
with
1 additions
and
1 deletions
@@ -153,7 +153,7 @@ end | @@ -153,7 +153,7 @@ end | ||
153 | 153 | ||
154 | --forbid user agent | 154 | --forbid user agent |
155 | function forbid_ua() | 155 | function forbid_ua() |
156 | - local forbid_ua_table = {'python-requests'} | 156 | + local forbid_ua_table = {'python%-requests'} |
157 | local ua = http_request.get_ua() | 157 | local ua = http_request.get_ua() |
158 | for i = 1, #forbid_ua_table do | 158 | for i = 1, #forbid_ua_table do |
159 | if ua and string.find(ua, forbid_ua_table[i]) then | 159 | if ua and string.find(ua, forbid_ua_table[i]) then |
-
Please register or login to post a comment