Skip to content

Commit

Permalink
lib: replace string concatenation with template
Browse files Browse the repository at this point in the history
  • Loading branch information
VijiKannan committed Nov 14, 2017
1 parent 4e769a8 commit f7f62bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_http_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f7f62bd

Please sign in to comment.