make the download buffer size configurable, remove setting content length