mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 14:18:44 +02:00
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:
parent
32f01c8c11
commit
88d2e699d8
22 changed files with 57 additions and 63 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue