about summary refs log tree commit homepage
path: root/test/test_serve_static.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2013-11-02 09:45:45 +0000
committerEric Wong <e@80x24.org>2013-11-02 09:45:45 +0000
commit38d6b9e49eed43256f610afcf4389ba7d85054e0 (patch)
tree5a189cdba84343040009e4ce4cd3ab3cdc008c1b /test/test_serve_static.rb
parent13a09dec6c029e01e8d959b0bf0feb94d72ae32d (diff)
downloadyahns-38d6b9e49eed43256f610afcf4389ba7d85054e0.tar.gz
We parse and use Content-Range, but do not drop it when sending
a response since that would confuse clients.
Diffstat (limited to 'test/test_serve_static.rb')
-rw-r--r--test/test_serve_static.rb1
1 files changed, 1 insertions, 0 deletions
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