From 678e738d70b80eb7dea5fa58bc2a8d485d47b664 Mon Sep 17 00:00:00 2001 From: Nayana Das K Date: Fri, 10 Nov 2017 15:29:23 +0530 Subject: [PATCH] lib: change concatenated string to template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/16925 Reviewed-By: James M Snell Reviewed-By: Daniel Bevenius Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Franziska Hinkelmann --- lib/_http_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_http_common.js b/lib/_http_common.js index a1fe29217f59d5..4c8d3c3850b2fa 100644 --- a/lib/_http_common.js +++ b/lib/_http_common.js @@ -78,7 +78,7 @@ function parserOnHeadersComplete(versionMajor, versionMinor, headers, method, parser.incoming = new IncomingMessage(parser.socket); parser.incoming.httpVersionMajor = versionMajor; parser.incoming.httpVersionMinor = versionMinor; - parser.incoming.httpVersion = versionMajor + '.' + versionMinor; + parser.incoming.httpVersion = `${versionMajor}.${versionMinor}`; parser.incoming.url = url; var n = headers.length;