diff options
author | Robert Nagy <ronagy@icloud.com> | 2019-08-12 08:52:18 +0200 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-08-14 15:54:01 -0700 |
commit | d30354859cb58a5ceaa77fd286a551b932236382 (patch) | |
tree | ed7a9fa6cf447f6f58272dc5be4236ddadd1a5db /lib/_http_client.js | |
parent | f7321dc7f950bb8027a589ca86e0f650b8301661 (diff) | |
download | node-new-d30354859cb58a5ceaa77fd286a551b932236382.tar.gz |
http: follow symbol naming convention
PR-URL: https://github.com/nodejs/node/pull/29091
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'lib/_http_client.js')
-rw-r--r-- | lib/_http_client.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/_http_client.js b/lib/_http_client.js index 14d9e59f63..08931132d2 100644 --- a/lib/_http_client.js +++ b/lib/_http_client.js @@ -40,7 +40,7 @@ const Agent = require('_http_agent'); const { Buffer } = require('buffer'); const { defaultTriggerAsyncIdScope } = require('internal/async_hooks'); const { URL, urlToOptions, searchParamsSymbol } = require('internal/url'); -const { outHeadersKey, ondrain } = require('internal/http'); +const { kOutHeaders, ondrain } = require('internal/http'); const { connResetException, codes } = require('internal/errors'); const { ERR_HTTP_HEADERS_SENT, @@ -253,7 +253,7 @@ function ClientRequest(input, options, cb) { } this._storeHeader(this.method + ' ' + this.path + ' HTTP/1.1\r\n', - this[outHeadersKey]); + this[kOutHeaders]); } } else { this._storeHeader(this.method + ' ' + this.path + ' HTTP/1.1\r\n', @@ -308,7 +308,7 @@ ClientRequest.prototype._implicitHeader = function _implicitHeader() { throw new ERR_HTTP_HEADERS_SENT('render'); } this._storeHeader(this.method + ' ' + this.path + ' HTTP/1.1\r\n', - this[outHeadersKey]); + this[kOutHeaders]); }; ClientRequest.prototype.abort = function abort() { |