test: remove unneeded string splitting

PR-URL: https://github.com/nodejs/node/pull/12992
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Luca Maraschi <luca.maraschi@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
This commit is contained in:
Vse Mozhet Byt 2017-05-12 03:09:13 +03:00 committed by Anna Henningsen
parent 32f01c8c11
commit 88d2e699d8
No known key found for this signature in database
GPG key ID: D8B9F5AEAE84E4CF
22 changed files with 57 additions and 63 deletions

View file

@ -39,8 +39,8 @@ const server = http.createServer(function(request, response) {
});
server.listen(0, function() {
const testURL = url.parse('http://asdf:qwer@localhost:' +
`${this.address().port}`);
const testURL =
url.parse(`http://asdf:qwer@localhost:${this.address().port}`);
// the test here is if you set a specific authorization header in the
// request we should not override that with basic auth
testURL.headers = {