http: throw ERR_HTTP_HEADERS_SENT when sending multiple writeHead
Currently it is possible to send multiple writeHead
before res.end()
and the last one will overwrite the previous headers.
With this PR writeHead
will throw ERR_HTTP_HEADERS_SENT
if sent more than once