From: Michael Wallner Date: Wed, 23 Mar 2005 13:17:45 +0000 (+0000) Subject: - send full entity if range is "0-" X-Git-Tag: RELEASE_0_7_0~9 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=d4c80d57ea85f763fc5151aa68fab87a3aa4e800 - send full entity if range is "0-" --- diff --git a/http_api.c b/http_api.c index 3760d31..035c68e 100644 --- a/http_api.c +++ b/http_api.c @@ -1159,8 +1159,12 @@ PHP_HTTP_API http_range_status _http_get_request_ranges(HashTable *ranges, size_ { /* "0-12345" */ case -10: - /* "0-", "0-0" or overflow */ - if (end == -1 || end == -10 || length <= end) { + /* "0-" */ + if (end == -1) { + return RANGE_NO; + } + /* "0-0" or overflow */ + if (end == -10 || length <= end) { return RANGE_ERR; } begin = 0; @@ -1184,7 +1188,7 @@ PHP_HTTP_API http_range_status _http_get_request_ranges(HashTable *ranges, size_ case -10: return RANGE_ERR; break; - + /* "12345-" */ case -1: if (length <= begin) {