add some comments to explain changed code

This commit is contained in:
Lorenz Kästle 2025-10-30 22:23:51 +01:00
parent 669edf2afc
commit 6abf609ed9

View file

@ -817,6 +817,8 @@ int curlhelp_parse_statusline(const char *buf, curlhelp_statusline *status_line)
buf = start;
}
// Accept either LF or CRLF as end of line for the status line
// CRLF is the standard (RFC9112), but it is recommended to accept both
size_t length_of_first_line = strcspn(buf, "\r\n");
const char *first_line_end = &buf[length_of_first_line];
if (first_line_end == NULL) {