Skip to content

Commit c5dfb10

Browse files
yhiroseCopilot
andauthored
Update httplib.h
Co-authored-by: Copilot <[email protected]>
1 parent 7856cc2 commit c5dfb10

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

httplib.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8402,10 +8402,9 @@ inline bool Server::handle_file_request(Request &req, Response &res) {
84028402
}
84038403
}
84048404

8405-
// Handle If-Range for partial content requests (RFC 9110
8406-
// Section 13.1.5) If-Range is only evaluated when Range header is
8407-
// present. If the validator matches, serve partial content; otherwise
8408-
// serve full content.
8405+
// Handle If-Range for partial content requests (RFC 9110 Section 13.1.5).
8406+
// If-Range is only evaluated when Range header is present.
8407+
// If the validator matches, serve partial content; otherwise serve full content.
84098408
if (!req.ranges.empty() && req.has_header("If-Range")) {
84108409
auto if_range = req.get_header_value("If-Range");
84118410
auto valid = false;

0 commit comments

Comments
 (0)