http,http2: throw invalid arg for writeHead headers arg
Throw if something other than an object is passed to writeHead
instead of quietly ignoring it.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines