We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6377ed commit d860fa1Copy full SHA for d860fa1
Library/Homebrew/formula_creator.rb
@@ -84,7 +84,7 @@ def write_formula!
84
r.owner = self
85
filepath = r.fetch
86
html_doctype_prefix = "<!doctype html"
87
- if File.read(filepath, html_doctype_prefix.length).downcase.start_with?(html_doctype_prefix)
+ if File.read(filepath, 100).strip.downcase.start_with?(html_doctype_prefix)
88
raise "Downloaded URL is not archive"
89
end
90
0 commit comments