setting content length in headers