File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,10 @@ exports = module.exports = internals.Response = class extends Http.ServerRespons
2727
2828 writeHead ( ...args ) {
2929
30- // Find the headers object, if one was provided. If a headers object is
31- // present, call setHeader() on the first valid header, and then break
32- // out of the loop and call writeHead(). By calling setHeader(), Node
33- // will materialize a headers object. This eliminates the need to
34- // access the deprecated _headers object directly.
30+ // Find the headers object if one was provided. If a headers object is present, call setHeader()
31+ // on the first valid header, and then break out of the loop and call writeHead(). By calling
32+ // setHeader(), Node will materialize a headers object.
33+
3534 const headers = args [ args . length - 1 ] ;
3635
3736 if ( typeof headers === 'object' && headers !== null ) {
Original file line number Diff line number Diff line change 1111 " test"
1212 ],
1313 "dependencies" : {
14- "@hapi/hoek" : " 6 .x.x" ,
14+ "@hapi/hoek" : " 8 .x.x" ,
1515 "@hapi/joi" : " 15.x.x"
1616 },
1717 "devDependencies" : {
18- "@hapi/code" : " 5 .x.x" ,
19- "@hapi/lab" : " 18 .x.x"
18+ "@hapi/code" : " 6 .x.x" ,
19+ "@hapi/lab" : " 20 .x.x"
2020 },
2121 "scripts" : {
2222 "test" : " lab -a @hapi/code -t 100 -L" ,
You can’t perform that action at this time.
0 commit comments