From c5dfb1019ce27b022d43de79c134b68909664b6c Mon Sep 17 00:00:00 2001 From: yhirose Date: Fri, 5 Dec 2025 12:36:31 -0500 Subject: [PATCH] Update httplib.h Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- httplib.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/httplib.h b/httplib.h index 731a971..e0a9f66 100644 --- a/httplib.h +++ b/httplib.h @@ -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;