From 38d6b9e49eed43256f610afcf4389ba7d85054e0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 2 Nov 2013 09:45:45 +0000 Subject: http: do not drop Content-Range from response headers We parse and use Content-Range, but do not drop it when sending a response since that would confuse clients. --- test/test_serve_static.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/test_serve_static.rb b/test/test_serve_static.rb index 4f33b6f..edd700c 100644 --- a/test/test_serve_static.rb +++ b/test/test_serve_static.rb @@ -32,6 +32,7 @@ class TestServeStatic < Testcase req = Net::HTTP::Get.new("/COPYING", "Range" => "bytes=5-46") res = http.request(req) + assert_match %r{bytes 5-46/\d+\z}, res["Content-Range"] assert_equal gplv3[5..46], res.body end -- cgit v1.2.3-24-ge0c7