commit: make ignore_non_trailer take buf/len