Skip to content

Commit

Permalink
netcat: fix test (#9953)
Browse files Browse the repository at this point in the history
avoid "invalid byte sequence in UTF-8"
  • Loading branch information
ilovezfs committed Feb 14, 2017
1 parent a750c28 commit fd6e01c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Formula/netcat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def install
end

test do
assert_match "HTTP/1.0", pipe_output("#{bin}/nc www.google.com 80", "GET / HTTP/1.0\r\n\r\n")
output = pipe_output("#{bin}/nc google.com 80", "GET / HTTP/1.0\r\n\r\n")
assert_equal "HTTP/1.0 200 OK", output.lines.first.chomp
end
end

0 comments on commit fd6e01c

Please sign in to comment.