Add support for setting custom trailers. (Also fix long standing typo)