Skip to content
Snippets Groups Projects
Commit a60ea13c authored by Jack Nagel's avatar Jack Nagel
Browse files

Use 1.8 has syntax

Fixes Homebrew/homebrew#30558.
parent d083efdb
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ def post path, data
elsif response["Content-Type"].downcase == "application/json; charset=utf-8"
body = response.body.dup.force_encoding(Encoding::UTF_8)
else
body = response.body.encode(Encoding::UTF_8, undef: :replace)
body = response.body.encode(Encoding::UTF_8, :undef => :replace)
end
Utils::JSON.load(body)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment