version 1.12.X
It seems that when adding trailer headers to a chunked response, message is not ended by the mandatory \r\n.
curl will complain with a 18 error.
(As a workaround add a "\r\n" at the end of the trailer header value , i.e responseTrailer.set(header_name, header_value+"\r\n").