Rich-Harris / degit

Straightforward project scaffolding
MIT License
6.93k stars 242 forks source link

fix: Exit direcly after the cloning is complete #363

Open bfanger opened 9 months ago

bfanger commented 9 months ago

When no cache exists one of the https.get calls is keeping the node process alive much longer than needed. This is causing (minutes) of unneeded delay before the degit command completes successfully.

Adding the Connection: close header causes the client to clean up after every request.