From 5d06a4f9072cade2b32d94e0ebb044cfece64a6b Mon Sep 17 00:00:00 2001 From: Vijayalakshmi Kannan Date: Tue, 14 Nov 2017 16:02:35 +0530 Subject: [PATCH] lib: replace string concatenation with template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/16923 Reviewed-By: James M Snell Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig Reviewed-By: Anatoli Papirovski --- lib/_http_client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_http_client.js b/lib/_http_client.js index f4ff4052f6631d..fa9e4e2c1f4e4a 100644 --- a/lib/_http_client.js +++ b/lib/_http_client.js @@ -116,7 +116,7 @@ function ClientRequest(options, cb) { var path; if (options.path) { - path = '' + options.path; + path = String(options.path); var invalidPath; if (path.length <= 39) { // Determined experimentally in V8 5.4 invalidPath = isInvalidPath(path);