app/models/headers.rb in cms_scanner-0.0.37.12 vs app/models/headers.rb in cms_scanner-0.0.38.0

- old
+ new

@@ -2,10 +2,10 @@ # Interesting Headers class Headers < InterestingFinding # @return [ Hash ] The headers def entries res = NS::Browser.get(url) - return [] unless res && res.headers + return [] unless res&.headers res.headers end # @return [ Array<String> ] The interesting headers detected def interesting_entries