diff --git a/lib/sendf.c b/lib/sendf.c index ab67da26ca..74e7038a7f 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -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;