martin 97/11/01 14:24:09
Modified: src/main http_protocol.c
Log:
Apache sent wrong replies in response to certain Range: bytes=... headers.
The patch is an update to what Ronald Tschalaer
<[EMAIL PROTECTED]> sent.
PR: 1329
Submitted by: Ronald Tschalaer <[EMAIL PROTECTED]>
Reviewed by: Martin +1, Dean +1, Paul +1
Revision Changes Path
1.169 +6 -3 apachen/src/main/http_protocol.c
Index: http_protocol.c
===================================================================
RCS file: /home/cvs/apachen/src/main/http_protocol.c,v
retrieving revision 1.168
retrieving revision 1.169
diff -u -u -r1.168 -r1.169
--- http_protocol.c 1997/10/22 20:29:41 1.168
+++ http_protocol.c 1997/11/01 22:24:08 1.169
@@ -100,13 +100,16 @@
*end = clength - 1;
}
- if (*start > *end)
- return 0;
+ if (*start < 0)
+ *start = 0;
if (*end >= clength)
*end = clength - 1;
- return 1;
+ if (*start > *end)
+ return 0;
+
+ return (*start > 0 || *end < clength - 1);
}
static int internal_byterange(int, long *, request_rec *, char **, long *,