From e01d2350ec161e9451eaa2892b13d1778b947c30 Mon Sep 17 00:00:00 2001 From: Eric Burns Date: Mon, 16 Apr 2018 12:31:29 -0400 Subject: [PATCH] Replace res.send( 404 ) with res.sendStatus( 404 ) in stream.js ... which is the new way that node.js wants us to send a response that is empty other than the status code. (Sorry, I had introduced the deprecated version a little while ago) --- lib/nodejs/stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nodejs/stream.js b/lib/nodejs/stream.js index 6828b3c60..6659a930f 100644 --- a/lib/nodejs/stream.js +++ b/lib/nodejs/stream.js @@ -32,7 +32,7 @@ function OnStreamRequest( request, response, parsedRequest, segments ) { } else { fs.stat( file, ( err, stats ) => { if ( err ) { - response.send( 404 ); + response.sendStatus( 404 ); return; }