diff options
author | Сковорода Никита Андреевич <chalkerx@gmail.com> | 2017-03-08 04:58:19 +0300 |
---|---|---|
committer | Kat Marchán <kzm@sykosomatic.org> | 2017-03-10 03:08:24 +0300 |
commit | 84b0b92e7f78ec4add42e8161c555325c99b7f98 (patch) | |
tree | 8dabe0961bf84e00f2df7af8213a78f9c0b07ad1 /test | |
parent | 0de1a9c1db90e6705c65c068df1fe82899e60d68 (diff) |
test: don't use undocumented res.writeHeader alias (#15874)
res.writeHeader is an undocumented alias to res.writeHead
It's docs-deprecated in https://github.com/nodejs/node/pull/11355
PR-URL: https://github.com/npm/npm/pull/15874
Credit: @ChALkeR
Reviewed-By: @zkat
Diffstat (limited to 'test')
-rw-r--r-- | test/broken-under-nyc-and-travis/whoami.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/broken-under-nyc-and-travis/whoami.js b/test/broken-under-nyc-and-travis/whoami.js index 268e0f94f..a5668b121 100644 --- a/test/broken-under-nyc-and-travis/whoami.js +++ b/test/broken-under-nyc-and-travis/whoami.js @@ -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') } |