Save a few cycles.
There is no need to check the first bytes, they are known to be "bytes ".
@@ -821,8 +821,8 @@ static int dav_parse_range(request_rec *r,
range = apr_pstrdup(r->pool, range_c);
if (ap_cstr_casecmpn(range, "bytes ", 6) != 0
- || (dash = ap_strchr(range, '-')) == NULL
- || (slash = ap_strchr(range, '/')) == NULL) {
+ || (dash = ap_strchr(range + 6, '-')) == NULL
+ || (slash = ap_strchr(range + 6, '/')) == NULL) {
/* malformed header */
return -1;
}
