mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
JS: improve model of express' req.sendFile
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
var express = require('express'),
|
||||
app = express();
|
||||
|
||||
app.get('/getFooFile', function(req, res) {
|
||||
res.sendFile("foo"); // OK (for now) since this is a server-side response
|
||||
});
|
||||
Reference in New Issue
Block a user