reduce header by header length returned from framer