From 26c215c8d5fbcd07475b201c1acde63c24c3a0e4 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 3 Feb 2011 16:26:08 +0100 Subject: abrt_curl: fflush http body stream Signed-off-by: Denys Vlasenko --- src/lib/abrt_curl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/abrt_curl.c b/src/lib/abrt_curl.c index f23d3949..74aae062 100644 --- a/src/lib/abrt_curl.c +++ b/src/lib/abrt_curl.c @@ -354,6 +354,11 @@ abrt_post(abrt_post_state_t *state, goto ret; } + // curl-7.20.1 doesn't do it, we get NULL body in the log message below + // unless we fflush the body memstream ourself + if (body_stream) + fflush(body_stream); + // Headers/body are already saved (if requested), extract more info curl_err = curl_easy_getinfo(handle, CURLINFO_RESPONSE_CODE, &response_code); die_if_curl_error(curl_err); -- cgit