lib: use req.socket over deprecated req.connection (#6705)

Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com>
This commit is contained in:
Sebastian Beltran
2025-08-21 10:05:29 -05:00
committed by GitHub
parent d9a62f9833
commit 89f198c6a5
2 changed files with 4 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ describe('req', function(){
app.enable('trust proxy');
app.use(function(req, res){
req.connection.encrypted = true;
req.socket.encrypted = true;
res.end(req.protocol);
});