Skip to content
Snippets Groups Projects
Commit fb962a28 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

uses the new client_write() function

parent 2f6e61d5
No related branches found
No related tags found
No related merge requests found
......@@ -170,10 +170,11 @@ CURLcode file(struct connectdata *conn)
Windows systems if the target is stdout. Use -O or -o parameters
to prevent CR/LF translation (this then goes to a binary mode
file descriptor). */
if(nread != data->fwrite (buf, 1, nread, data->out)) {
failf (data, "Failed writing output");
return CURLE_WRITE_ERROR;
}
res = client_write(data, CLIENTWRITE_BODY, buf, nread);
if(res)
return res;
now = tvnow();
if(pgrsUpdate(data))
res = CURLE_ABORTED_BY_CALLBACK;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment