Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
test: don't use undocumented res.writeHeader alias (#15874)
Browse files Browse the repository at this point in the history
res.writeHeader is an undocumented alias to res.writeHead
It's docs-deprecated in nodejs/node#11355

PR-URL: #15874
Credit: @ChALkeR 
Reviewed-By: @zkat
  • Loading branch information
ChALkeR authored and zkat committed Mar 8, 2017
1 parent 888a9db commit 6121ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/broken-under-nyc-and-travis/whoami.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ test('npm whoami with bearer auth', { timeout: 2 * 1000 }, function (t) {
t.equal(req.url, '/-/whoami')

res.setHeader('content-type', 'application/json')
res.writeHeader(200)
res.writeHead(200)
res.end(JSON.stringify({ username: 'wombat' }), 'utf8')
}

Expand Down

0 comments on commit 6121ab6

Please sign in to comment.