adding content length header middleware