Skip to content

Commit

Permalink
lib: change concatenated string to template
Browse files Browse the repository at this point in the history
PR-URL: #16925
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
  • Loading branch information
Nayanadask authored and evanlucas committed Nov 13, 2017
1 parent 1fcd95e commit 678e738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_http_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function parserOnHeadersComplete(versionMajor, versionMinor, headers, method,
parser.incoming = new IncomingMessage(parser.socket);
parser.incoming.httpVersionMajor = versionMajor;
parser.incoming.httpVersionMinor = versionMinor;
parser.incoming.httpVersion = versionMajor + '.' + versionMinor;
parser.incoming.httpVersion = `${versionMajor}.${versionMinor}`;
parser.incoming.url = url;

var n = headers.length;
Expand Down

0 comments on commit 678e738

Please sign in to comment.