wget-improved
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -31,2 +31,6 @@ 'use strict' | ||
options = parseOptions('download', options); | ||
} else { | ||
options = { | ||
gunzip: false | ||
}; | ||
} | ||
@@ -94,4 +98,4 @@ srcUrl = url.parse(src); | ||
}); | ||
} else { | ||
downloader.emit('error', 'Server respond ' + res.statusCode); | ||
} else if(res.statusCode !== 200 && res.statusCode !== 302) { | ||
downloader.emit('error', 'Server responded with unhandled status: ' + res.statusCode); | ||
} | ||
@@ -191,2 +195,4 @@ }); | ||
} | ||
options.gunzip = options.gunzip || false; | ||
return options; | ||
@@ -193,0 +199,0 @@ } |
{ | ||
"name": "wget-improved", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "wget in nodejs, forked from wget to add improvements and help maintain the project", | ||
@@ -5,0 +5,0 @@ "keywords": ["download", "http", "https", "ftp", "proxy", "wget"], |
@@ -9,3 +9,3 @@ # wget-improved | ||
- Better error reporting | ||
- Does not write using append (now uses w+ identical to wget) | ||
- Does not write using append (uses w+ identical to wget) | ||
- Handles gzip compression, allow you to automatically gunzip the stream | ||
@@ -12,0 +12,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11285
198