diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-08-22 23:11:49 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-08-23 01:57:19 +0000 |
commit | fe1e1200c1541676e6b8402b7972a16105a76a63 (patch) | |
tree | 1ae0addce5d4cef8985ca859c33ef78c4d763751 /test/http.rb | |
parent | 1199492dd1adb394cf4cc0d599e7f77c52ccbdbf (diff) | |
download | cmogstored-fe1e1200c1541676e6b8402b7972a16105a76a63.tar.gz |
This was inherited from a server which needed to deal with some broken clients, MogileFS does not have this problem. Neither Perlbal nor nginx set this response header, either, so lets save ourselves a few bytes.
Diffstat (limited to 'test/http.rb')
-rw-r--r-- | test/http.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/http.rb b/test/http.rb index b296ffa..c847046 100644 --- a/test/http.rb +++ b/test/http.rb @@ -184,7 +184,7 @@ class TestHTTP < Test::Unit::TestCase nr.times { @client.write(req2) } @client.write("GET /dev666/test HTTP/1.0\r\n\r\n") all = thr.value - assert_equal((nr * 2) + 1, all.split(/\r\n/).grep(/Status:/).size); + assert_equal((nr * 2) + 1, all.split(/\r\n/).grep(%r{^HTTP\/}).size); end def test_garbage |