42thcoder / block_yundun

Rack middleware to block requests issued by aliyun yundun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

如果请求中不包含HTTP_USER_AGENT会导致异常

toby1024 opened this issue · comments

keywords.any? {|keyword| env['HTTP_USER_AGENT'].include?(keyword)}

这里如果取不到HTTP_USER_AGENT ,则会导致异常