fix pipe feature of curl downloader