add content-length header for download