Adding a patch by Zhao Lei for downloading large archives. Still commented, will be tested later.