← Commit list

2e5d219205

Daniel Stenberg
Daniel Stenberg
2026-04-04
SUCCESS Duration: 278s

Subject

sendf: fix CR detection if no LF is in the chunk

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/sendf.c+2 -0
@@ -1009,6 +1009,8 @@ static CURLcode cr_lc_read(struct Curl_easy *data,
if(!nread || !memchr(buf, '\n', nread)) {
/* nothing to convert, return this right away */
+ if(nread)
+ ctx->prev_cr = (buf[nread - 1] == '\r');
if(ctx->read_eos)
ctx->eos = TRUE;
*pnread = nread;