Branch: Tag:

2014-07-23

2014-07-23 10:49:16 by Jonas Walldén <jonasw@roxen.com>

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;    }