diff options
author | Trevor Norris <trev.norris@gmail.com> | 2016-06-02 10:55:36 -0600 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2016-06-07 13:51:14 -0600 |
commit | 54cc7212df320f1e489edf8dbeabb167a71cbe67 (patch) | |
tree | 19764d4f8f0d84373bb9de96844043fad342c9c0 /test/parallel/test-http-status-message.js | |
parent | c300ba22128ce8e675650adcd1f6b869dc1b5126 (diff) | |
download | android-node-v8-54cc7212df320f1e489edf8dbeabb167a71cbe67.tar.gz android-node-v8-54cc7212df320f1e489edf8dbeabb167a71cbe67.tar.bz2 android-node-v8-54cc7212df320f1e489edf8dbeabb167a71cbe67.zip |
buffer: introduce latin1 encoding term
When node began using the OneByte API (f150d56) it also switched to
officially supporting ISO-8859-1. Though at the time no new encoding
string was introduced.
Introduce the new encoding string 'latin1' to be more explicit. The
previous 'binary' and documented as an alias to 'latin1'. While many
tests have switched to use 'latin1', there are still plenty that do both
'binary' and 'latin1' checks side-by-side to ensure there is no
regression.
PR-URL: https://github.com/nodejs/node/pull/7111
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-http-status-message.js')
-rw-r--r-- | test/parallel/test-http-status-message.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http-status-message.js b/test/parallel/test-http-status-message.js index e579b8e995..a95ada58ba 100644 --- a/test/parallel/test-http-status-message.js +++ b/test/parallel/test-http-status-message.js @@ -22,7 +22,7 @@ function test() { bufs.push(chunk); }); client.on('end', function() { - var head = Buffer.concat(bufs).toString('binary').split('\r\n')[0]; + var head = Buffer.concat(bufs).toString('latin1').split('\r\n')[0]; assert.equal('HTTP/1.1 200 Custom Message', head); console.log('ok'); s.close(); |