Skip to content

Commit f50bb2b

Browse files
committed
test: update handler for Node 20
1 parent ebb608f commit f50bb2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/lib-http-proxy-passes-web-incoming-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,10 +432,10 @@ describe('#followRedirects', function () {
432432
var proxyServer = http.createServer(requestHandler);
433433

434434
var source = http.createServer(function(req, res) {
435-
436-
if (url.parse(req.url).pathname === '/redirect') {
435+
if (req.url === '/redirect') {
437436
res.writeHead(200, { 'Content-Type': 'text/plain' });
438437
res.end('ok');
438+
return;
439439
}
440440

441441
res.writeHead(301, { 'Location': '/redirect' });

0 commit comments

Comments
 (0)