diff --git a/src/flb_http_client_http1.c b/src/flb_http_client_http1.c index e09950c70fb..1c1fa235ad5 100644 --- a/src/flb_http_client_http1.c +++ b/src/flb_http_client_http1.c @@ -479,6 +479,8 @@ int flb_http1_request_commit(struct flb_http_request *request) return -7; } + request_buffer = sds_result; + if (request->body != NULL) { sds_result = cfl_sds_cat(request_buffer, request->body,