Download.get_lib(url).request({
method: 'GET',
headers: {
'Range': 'bytes=0-1'
},
path: q.pathname,
host: q.hostname,
port: (q.protocol === "http:") ? 80 : 443
}, res => {
res.on("data", (chunk) => {
res.destroy();
resolve(res.statusCode);
});
}).end();