diff options
author | yorkie <yorkiefixer@gmail.com> | 2016-08-03 00:28:38 +0800 |
---|---|---|
committer | yorkie <yorkiefixer@gmail.com> | 2016-08-05 23:26:46 +0800 |
commit | 99296eedbef45c39c30ff85c332d319b28840f99 (patch) | |
tree | 2bbbb4f64fd4ac790d4cab71d3353ad0463b43e6 /test/parallel/test-http-outgoing-proto.js | |
parent | 88e862ba82a3a62a25bab558915e4290b7686f1a (diff) | |
download | android-node-v8-99296eedbef45c39c30ff85c332d319b28840f99.tar.gz android-node-v8-99296eedbef45c39c30ff85c332d319b28840f99.tar.bz2 android-node-v8-99296eedbef45c39c30ff85c332d319b28840f99.zip |
http: specify _implicitHeader in OutgoingMessage
PR-URL: https://github.com/nodejs/node/pull/7949
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-http-outgoing-proto.js')
-rw-r--r-- | test/parallel/test-http-outgoing-proto.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/parallel/test-http-outgoing-proto.js b/test/parallel/test-http-outgoing-proto.js new file mode 100644 index 0000000000..738e1d2c8c --- /dev/null +++ b/test/parallel/test-http-outgoing-proto.js @@ -0,0 +1,14 @@ +'use strict'; +require('../common'); +const assert = require('assert'); + +const http = require('http'); +const OutgoingMessage = http.OutgoingMessage; +const ClientRequest = http.ClientRequest; +const ServerResponse = http.ServerResponse; + +assert.throws(OutgoingMessage.prototype._implicitHeader); +assert.strictEqual( + typeof ClientRequest.prototype._implicitHeader, 'function'); +assert.strictEqual( + typeof ServerResponse.prototype._implicitHeader, 'function'); |