diff options
author | Eric Wong <e@80x24.org> | 2013-11-02 09:45:45 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2013-11-02 09:45:45 +0000 |
commit | 38d6b9e49eed43256f610afcf4389ba7d85054e0 (patch) | |
tree | 5a189cdba84343040009e4ce4cd3ab3cdc008c1b /test/test_serve_static.rb | |
parent | 13a09dec6c029e01e8d959b0bf0feb94d72ae32d (diff) | |
download | yahns-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.rb | 1 |
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 |