sets the content length in the header. just in case the content was
modieied.