I ask because if you do something like autocannon google.com it doesn't recognise the actual address. Simple enough to fix, just check url.indexOf('http') === 0 and if not, prepend 'http://' before it's parsed by node's internal url module.
This check would also pass for https, hence why I don't check for http://
I ask because if you do something like
autocannon google.com
it doesn't recognise the actual address. Simple enough to fix, just checkurl.indexOf('http') === 0
and if not, prepend 'http://' before it's parsed by node's internal url module.This check would also pass for
https
, hence why I don't check forhttp://