Skip to content

Commit

Permalink
Replace res.send( 404 ) with res.sendStatus( 404 ) in stream.js
Browse files Browse the repository at this point in the history
... 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)
  • Loading branch information
eric79 committed Apr 16, 2018
1 parent 0360067 commit be3edb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nodejs/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit be3edb2

Please sign in to comment.