1
0
mirror of synced 2025-12-18 16:34:09 +03:00

Update httplib.h

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
yhirose
2025-12-05 12:36:31 -05:00
committed by GitHub
parent 7856cc2520
commit c5dfb1019c

View File

@@ -8402,10 +8402,9 @@ inline bool Server::handle_file_request(Request &req, Response &res) {
}
}
// Handle If-Range for partial content requests (RFC 9110
// Section 13.1.5) If-Range is only evaluated when Range header is
// present. If the validator matches, serve partial content; otherwise
// serve full content.
// Handle If-Range for partial content requests (RFC 9110 Section 13.1.5).
// If-Range is only evaluated when Range header is present.
// If the validator matches, serve partial content; otherwise serve full content.
if (!req.ranges.empty() && req.has_header("If-Range")) {
auto if_range = req.get_header_value("If-Range");
auto valid = false;