From a471d10cd793c4dc7182b4e588a21d6ac7c41de7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 30 Dec 2010 08:32:22 +0000 Subject: return 206 status for partial sendfile responses Although curl did not complain, 206 is the correct error code for partial HTTP responses. --- t/byte-range-common.sh | 1 + 1 file changed, 1 insertion(+) (limited to 't') 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]\+\)' -- cgit v1.2.3-24-ge0c7