lib/cms_scanner/finders/finder/enumerator.rb in cms_scanner-0.10.1 vs lib/cms_scanner/finders/finder/enumerator.rb in cms_scanner-0.11.0

- old
+ new

@@ -53,10 +53,10 @@ # @param [ Hash ] opts # # @return [ Typhoeus::Response, nil ] def maybe_get_full_response(head_res, opts) return head_res unless opts[:check_full_response] == true || - [*opts[:check_full_response]].include?(head_res.code) + Array(opts[:check_full_response]).include?(head_res.code) full_res = NS::Browser.get(head_res.effective_url, full_request_params) return if target.homepage_or_404?(full_res) || opts[:exclude_content] && full_res.body&.match(opts[:exclude_content])