http-party / http-server

a simple zero-configuration command-line http server
MIT License
13.42k stars 1.48k forks source link

Make sure headers are not set twice on error #791

Closed zbynek closed 2 years ago

zbynek commented 2 years ago

Handle the case when headers are already sent because of an error -- we want to report the error, not hide it behind "headers already sent". Also bump Node requirement to match versions not affected by #756 .

Relevant issues

756

Contributor checklist
Maintainer checklist
zbynek commented 2 years ago

@thornjad ping