[http] Set Content-Length header in reponse to upload/update API.