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);