From f7f62bd6bfa6e0a28727225311bcd4ee41edd05f 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 --- 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 df99daa9d54043..0d9697f4bfb5bb 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);