diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-12-30 08:32:22 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-04 16:21:17 -0800 |
commit | a471d10cd793c4dc7182b4e588a21d6ac7c41de7 (patch) | |
tree | 2edaafc3f753f22fe08e995d3fa54398c5e129a5 /lib | |
parent | dc77752eb7bfe528c60dc0ac028717877342e22a (diff) | |
download | rainbows-a471d10cd793c4dc7182b4e588a21d6ac7c41de7.tar.gz |
Although curl did not complain, 206 is the correct error code for partial HTTP responses.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rainbows/response/range.rb | 2 |
1 files changed, 1 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 |