Authored by chunhua.zhang

转义

@@ -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