mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
add some comments to explain changed code
This commit is contained in:
parent
669edf2afc
commit
6abf609ed9
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue