Adam Stankiewicz
53eeca97d3
Use eslint instead jscs
2016-03-31 00:27:17 +02:00
Utsav Shah
cdf45239f4
Decompress gzip files
...
Update request lib
2015-12-12 18:08:19 -06:00
Adam Stankiewicz
ca0a36abcf
Make downloader work on all platforms, fixes #2050
2015-11-27 13:45:19 +01:00
Adam Stankiewicz
4c6fdc905f
Revert "Fix tests on Windows (cleanup of downloaded files)"
...
This reverts commit bb7c02b07b .
2015-11-27 00:33:15 +01:00
Adam Stankiewicz
bb7c02b07b
Fix tests on Windows (cleanup of downloaded files)
2015-11-26 18:06:26 +01:00
Adam Stankiewicz
ce15df27ca
Properly destroy read stream for downloads
2015-11-17 12:13:26 +01:00
Piotr Wielgolaski
51a986d0d4
add test for download.js and fix download behavior to not leave temporary files in case of error
2015-11-07 18:26:48 +01:00
Piotr Wielgolaski
931b0a8905
fix passing options to request
...
options from download need to be pass to request library that make HTTP
request
Also when there is http error stream need to be closed otherwise there
is issue reported that unlink operation is not permitted on Windows
2015-10-24 16:52:22 +02:00
Patrick Kettner
0f790f4293
add User-Agent to downloadd
2015-10-20 13:51:50 -07:00
Adam Stankiewicz
0bb1536c99
Better manage file handles, properly close streams
2015-10-14 19:31:53 +02:00
Adam Stankiewicz
df8e5a16be
Fix readdir call on Windows
...
Sometimes it return ENOENT instead of ENODIR for normal files.
This broke code paths in few places. Also, see:
https://github.com/isaacs/chmodr/pull/8
2015-10-14 16:09:38 +02:00
André Cruz
b8b03c88e4
Close GH-844: Ensure that the whole file was downloaded.. Fixes #792 , Fixes #824 , Fixes #830
2013-09-01 22:25:20 +01:00
Andre Cruz
6ba6ea0084
Prevent deferred from being resolved because of a failed request.
2013-08-17 11:09:58 +01:00
André Cruz
24cabf19af
Close GH-705: Refactor download to util and added retry logic in it.. Fixes #704 , Fixes #699 , Fixes #700
2013-08-02 23:09:31 +01:00