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_chunked_put.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_chunked_put.rb')
-rw-r--r-- | test/http_chunked_put.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/http_chunked_put.rb b/test/http_chunked_put.rb index 817ced7..8f07c85 100644 --- a/test/http_chunked_put.rb +++ b/test/http_chunked_put.rb @@ -86,7 +86,6 @@ class TestHTTPChunkedPut < Test::Unit::TestCase def edge_finder(suf) expect = "HTTP/1.1 200 OK\r\n" \ - "Status: 200 OK\r\n" \ "Date: #{EPOCH}\r\n" \ "Last-Modified: #{EPOCH}\r\n" \ "Content-Length: 5\r\n" \ @@ -125,7 +124,6 @@ class TestHTTPChunkedPut < Test::Unit::TestCase def check_abcde(msg=nil) expect = "HTTP/1.1 201 Created\r\n" \ - "Status: 201 Created\r\n" \ "Date: #{EPOCH}\r\n" \ "Content-Length: 0\r\n" \ "Content-Type: text/plain\r\n" \ @@ -219,7 +217,6 @@ class TestHTTPChunkedPut < Test::Unit::TestCase t_yield @client.write(moar) expect = "HTTP/1.1 200 OK\r\n" \ - "Status: 200 OK\r\n" \ "Date: #{EPOCH}\r\n" \ "Last-Modified: #{EPOCH}\r\n" \ "Content-Length: 5\r\n" \ @@ -245,7 +242,6 @@ class TestHTTPChunkedPut < Test::Unit::TestCase check_abcde @client.write(more) expect = "HTTP/1.1 200 OK\r\n" \ - "Status: 200 OK\r\n" \ "Date: #{EPOCH}\r\n" \ "Last-Modified: #{EPOCH}\r\n" \ "Content-Length: 5\r\n" \ @@ -274,7 +270,6 @@ class TestHTTPChunkedPut < Test::Unit::TestCase t_yield @client.write(moar) expect = "HTTP/1.1 200 OK\r\n" \ - "Status: 200 OK\r\n" \ "Date: #{EPOCH}\r\n" \ "Last-Modified: #{EPOCH}\r\n" \ "Content-Length: 5\r\n" \ @@ -293,7 +288,6 @@ class TestHTTPChunkedPut < Test::Unit::TestCase "0\r\n\r\n" @client.write(req) expect = "HTTP/1.1 201 Created\r\n" \ - "Status: 201 Created\r\n" \ "Date: #{EPOCH}\r\n" \ "Content-Length: 0\r\n" \ "Content-Type: text/plain\r\n" \ @@ -316,7 +310,6 @@ class TestHTTPChunkedPut < Test::Unit::TestCase end.join @client.write(req) expect = "HTTP/1.1 201 Created\r\n" \ - "Status: 201 Created\r\n" \ "Date: #{EPOCH}\r\n" \ "Content-Length: 0\r\n" \ "Content-Type: text/plain\r\n" \ @@ -344,7 +337,6 @@ class TestHTTPChunkedPut < Test::Unit::TestCase end expect = "HTTP/1.1 201 Created\r\n" \ - "Status: 201 Created\r\n" \ "Date: #{EPOCH}\r\n" \ "Content-Length: 0\r\n" \ "Content-Type: text/plain\r\n" \ |