Set Content-Length header on deployment API calls