Closed barneycarroll closed 7 years ago
Hi Barney. Thanks a lot, for the heads up. I really should get some tests set up.
Haha yeah I have that problem too. So hard to develop tooling that's still evolving and make rational tests alongside, a lot of the time it feels like you're overformalising self-evident stuff that's liable to change any minute anyway.
If
config.main
isn't an HTTP URI,config.external
is set tofalse
. This screws things up whenserve.js
unconditionally tries to parse it as a URI and extract thehost
. This is odd, since earlier parts ofserve.js
seem to expectconfig.external
to be a boolean or at least falsey.