summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/_http_client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_http_client.js b/lib/_http_client.js
index 366a7b0712..5b56862800 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);