Skip to content

Commit

Permalink
tool_header_cb: fflush the header stream
Browse files Browse the repository at this point in the history
Flush the header stream when -D is used so that they are sent off
earlier.

Bug: #324
Reported-by: Cédric Connes
  • Loading branch information
bagder committed Jun 25, 2015
1 parent e3e06e1 commit 1f70cde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tool_cb_hdr.c
Expand Up @@ -75,6 +75,8 @@ size_t tool_header_cb(void *ptr, size_t size, size_t nmemb, void *userdata)
size_t rc = fwrite(ptr, size, nmemb, heads->stream);
if(rc != cb)
return rc;
/* flush the stream to send off what we got earlier */
(void)fflush(heads->stream);
}

/*
Expand Down

0 comments on commit 1f70cde

Please sign in to comment.