Fix issue with archive downloader

This commit is contained in:
Ivan Kravets
2016-09-04 12:03:57 +03:00
parent a05d192beb
commit 0f300a24a1
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@
import sys
VERSION = (3, 0, "0b12")
VERSION = (3, 0, "0b13")
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio"

View File

@ -39,7 +39,8 @@ class FileDownloader(object):
disposition = self._request.headers.get("content-disposition")
if disposition and "filename=" in disposition:
self._fname = disposition[disposition.index("filename=") + 9:]
self._fname = disposition[disposition.index("filename=") +
9:].replace('"', "").replace("'", "")
else:
self._fname = url.split("/")[-1]