src: node: set Content-Length header when uploading