rosshinkley / nightmare-inline-download

36 stars 8 forks source link

parseContentDisposition and use as savePath instead of use getFileNam… #11

Open willkan opened 7 years ago

willkan commented 7 years ago

(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.