summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/_http_common.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/_http_common.js b/lib/_http_common.js
index 732f4f29c4..8c88a90568 100644
--- a/lib/_http_common.js
+++ b/lib/_http_common.js
@@ -91,7 +91,7 @@ function parserOnHeadersComplete(versionMajor, versionMinor, headers, method,
incoming.url = url;
incoming.upgrade = upgrade;
- var n = headers.length;
+ let n = headers.length;
// If parser.maxHeaderPairs <= 0 assume that there's no limit.
if (parser.maxHeaderPairs > 0)
@@ -120,8 +120,8 @@ function parserOnBody(b, start, len) {
// Pretend this was the result of a stream._read call.
if (len > 0 && !stream._dumped) {
- var slice = b.slice(start, start + len);
- var ret = stream.push(slice);
+ const slice = b.slice(start, start + len);
+ const ret = stream.push(slice);
if (!ret)
readStop(this.socket);
}