projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
01d4a35
)
- send full entity if range is "0-"
author
Michael Wallner
<mike@php.net>
Wed, 23 Mar 2005 13:17:45 +0000
(13:17 +0000)
committer
Michael Wallner
<mike@php.net>
Wed, 23 Mar 2005 13:17:45 +0000
(13:17 +0000)
http_api.c
patch
|
blob
|
history
diff --git
a/http_api.c
b/http_api.c
index 3760d310ee0c92f33375e27eb81292254415530c..035c68e5fe6c5a330abbd99b345f0363b8e2d98c 100644
(file)
--- 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) {