diff options
-rw-r--r-- | lib/rainbows/response/range.rb | 2 | ||||
-rw-r--r-- | t/byte-range-common.sh | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/response/range.rb b/lib/rainbows/response/range.rb index 5d8f01e..b383587 100644 --- a/lib/rainbows/response/range.rb +++ b/lib/rainbows/response/range.rb @@ -27,7 +27,7 @@ module Rainbows::Response::Range count = clen if count > clen headers[Content_Length] = count.to_s headers[Content_Range] = "bytes #{offset}-#{offset+count-1}/#{clen}" - [ status, offset, count ] + [ 206, offset, count ] end # nil if no status end diff --git a/t/byte-range-common.sh b/t/byte-range-common.sh index 120aad6..514a024 100644 --- a/t/byte-range-common.sh +++ b/t/byte-range-common.sh @@ -14,6 +14,7 @@ t_begin "byte-range setup vars" && { } check_content_range () { + grep '^< HTTP/1\.1 206 Partial Content' $err grep 'Range:' $err # Content-Range: bytes #{offset}-#{offset+count-1}/#{clen} d='\([0-9]\+\)' |