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 87e5736 commit e71b147Copy full SHA for e71b147
Library/Homebrew/formula_creator.rb
@@ -86,8 +86,8 @@ def write_formula!
86
html_doctype_prefix = "<!doctype html"
87
# Number of bytes to read from file start to ensure it is not HTML.
88
# HTML may start with arbitrary number of whitespace lines.
89
- head_len = 100
90
- if File.read(filepath, head_len).strip.downcase.start_with?(html_doctype_prefix)
+ bytes_to_read = 100
+ if File.read(filepath, bytes_to_read).strip.downcase.start_with?(html_doctype_prefix)
91
raise "Downloaded URL is not archive"
92
end
93
0 commit comments