Skip to content
Permalink
Browse files

http: http_incoming rename var to let and const

PR-URL: #30285
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
telenord authored and MylesBorins committed Nov 6, 2019
1 parent 88adad2 commit 5727bc3880d835dfa331ec31a16c95e4ca949817
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/_http_incoming.js
@@ -110,7 +110,7 @@ IncomingMessage.prototype.destroy = function destroy(error) {
IncomingMessage.prototype._addHeaderLines = _addHeaderLines;
function _addHeaderLines(headers, n) {
if (headers && headers.length) {
var dest;
let dest;
if (this.complete) {
this.rawTrailers = headers;
dest = this.trailers;
@@ -119,7 +119,7 @@ function _addHeaderLines(headers, n) {
dest = this.headers;
}

for (var i = 0; i < n; i += 2) {
for (let i = 0; i < n; i += 2) {
this._addHeaderLine(headers[i], headers[i + 1], dest);
}
}

0 comments on commit 5727bc3

Please sign in to comment.
You can’t perform that action at this time.