+1
-1
@@ -146,3 +146,3 @@ #! /usr/bin/env node | ||
| (req.headers['if-none-match'] === etag(stat)) | ||
| || (Date.parse(req.headers['if-modified-since']) >= stat.mtime) | ||
| || (new Date(Date.parse(req.headers['if-modified-since'])) >= stat.mtime) | ||
| ) | ||
@@ -149,0 +149,0 @@ ) { |
+1
-1
@@ -5,3 +5,3 @@ { | ||
| "description": "A simple static file server middleware that works with both Express and Flatiron", | ||
| "version": "0.4.5", | ||
| "version": "0.4.6", | ||
| "homepage": "https://github.com/jesusabdullah/node-ecstatic", | ||
@@ -8,0 +8,0 @@ "repository": { |
+14
-5
@@ -6,8 +6,6 @@ var test = require('tap').test, | ||
| var server; | ||
| test('malformed uri', function (t) { | ||
| t.plan(1); | ||
| var server = http.createServer(ecstatic(__dirname)); | ||
| t.on('end', function () { | ||
| server.close(); | ||
| }); | ||
| server = http.createServer(ecstatic(__dirname)); | ||
@@ -22,4 +20,15 @@ server.listen(0, function () { | ||
| t.equal(res.statusCode, 400); | ||
| t.end(); | ||
| }); | ||
| }); | ||
| }); | ||
| test('server teardown', function (t) { | ||
| server.close(); | ||
| var to = setTimeout(function () { | ||
| process.stderr.write('# server not closing; slaughtering process.\n'); | ||
| process.exit(0); | ||
| }, 5000); | ||
| t.end(); | ||
| }); |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
224986
0.08%852
0.71%