setting Content-Length