mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Fix issue with archive downloader
This commit is contained in:
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
VERSION = (3, 0, "0b12")
|
VERSION = (3, 0, "0b13")
|
||||||
__version__ = ".".join([str(s) for s in VERSION])
|
__version__ = ".".join([str(s) for s in VERSION])
|
||||||
|
|
||||||
__title__ = "platformio"
|
__title__ = "platformio"
|
||||||
|
@ -39,7 +39,8 @@ class FileDownloader(object):
|
|||||||
|
|
||||||
disposition = self._request.headers.get("content-disposition")
|
disposition = self._request.headers.get("content-disposition")
|
||||||
if disposition and "filename=" in disposition:
|
if disposition and "filename=" in disposition:
|
||||||
self._fname = disposition[disposition.index("filename=") + 9:]
|
self._fname = disposition[disposition.index("filename=") +
|
||||||
|
9:].replace('"', "").replace("'", "")
|
||||||
else:
|
else:
|
||||||
self._fname = url.split("/")[-1]
|
self._fname = url.split("/")[-1]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user