2014-07-23
2014-07-23 10:48:40 by 0
-
4626b0106ca26cda8b1e572fa1ffae6cbe6a4db9
(7 lines)
(+5/-2)
[
Show
| Annotate
]
Branch: 5.4
If-Range date comparison should use strict equivalence and not less than as
noted in the RFC 7233 clarification of HTTP 1.1 Range Requests.
2946:
skip = 1;
}
} else {
+ // Needs strict equality according to RFC 7233
array(int) since_info = Roxen.parse_since(if_range);
- if (!since_info || (since_info[0] < misc->last_modified)) {
+ if (!since_info || (since_info[0] != misc->last_modified)) {
// Failed to parse since info, or the file has changed.
skip = 1;
}
3556: Inside #if defined(RAM_CACHE)
skip = 1;
}
} else {
+ // Needs strict equality according to RFC 7233
array(int) since_info = Roxen.parse_since(if_range);
- if (!since_info || (since_info[0] < file->last_modified)) {
+ if (!since_info || (since_info[0] != file->last_modified)) {
// Failed to parse since info, or the file has changed.
skip = 1;
}