(parse http header contentDisposition and use it as savePath) instead of (use getFileName as savePath)
because in some headless runner like xvfb, the downloadItem.getFileName() will always return "download", it will cause error download multi file in the same time.
(parse http header contentDisposition and use it as savePath) instead of (use getFileName as savePath)
because in some headless runner like xvfb, the
downloadItem.getFileName()
will always return"download"
, it will cause error download multi file in the same time.