mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:11:40 +03:00
parent
21fb30b5d1
commit
8289ac1be6
1 changed files with 1 additions and 2 deletions
|
|
@ -402,9 +402,8 @@ static CURLcode cw_out_write(struct Curl_easy *data,
|
|||
{
|
||||
struct cw_out_ctx *ctx = writer->ctx;
|
||||
CURLcode result;
|
||||
bool flush_all;
|
||||
bool flush_all = !!(type & CLIENTWRITE_EOS);
|
||||
|
||||
flush_all = (type & CLIENTWRITE_EOS) ? TRUE : FALSE;
|
||||
if((type & CLIENTWRITE_BODY) ||
|
||||
((type & CLIENTWRITE_HEADER) && data->set.include_header)) {
|
||||
result = cw_out_do_write(ctx, data, CW_OUT_BODY, flush_all, buf, blen);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue