Skip to content
Myr

deps: send@0.7.0

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 3b7ca43 · Browse files · 4 files+9 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+9 added−7 removed

  • tests:+3 added−3 removed
  • other:+6 added−4 removed

4 files+9 added−7 removed

modified:lib/response.js-3 removed
384 unmodified lines
385 function cleanup() {386 req.socket.removeListener('error', error);387 }388389 // Back-compat390 options.maxage = options.maxage || options.maxAge || 0;391389 // transfer390 var file = send(req, path, options);391 file.on('error', error);392 file.on('directory', next);
439 unmodified lines
modified:test/res.sendfile.js+3 added-3 removed
104 unmodified lines
105 })106 })107108 describe('.sendfile(path)', function(){109 it('should not serve hidden files', function(done){109 it('should not serve dotfiles', function(done){110 var app = express();111112 app.use(function(req, res){113 res.sendfile('test/fixtures/.name');
3 unmodified lines
117 .get('/')118 .expect(404, done);119 })120121 it('should accept hidden option', function(done){121 it('should accept dotfiles option', function(done){122 var app = express();123124 app.use(function(req, res){125 res.sendfile('test/fixtures/.name', { hidden: true });125 res.sendfile('test/fixtures/.name', { dotfiles: 'allow' });126 });127128 request(app)129 .get('/')
168 unmodified lines
modified:History.md+5 added
20 unmodified lines
21 * deps: parseurl@~1.2.022 - Cache URLs based on original value23 - Remove no-longer-needed URL mis-parse work-around24 - Simplify the "fast-path" `RegExp`25 * deps: send@0.7.026 - Add `dotfiles` option27 - Cap `maxAge` value to 1 year28 - deps: debug@1.0.429 - deps: depd@0.4.230 * perf: prevent multiple `Buffer` creation in `res.send`31324.6.1 / 2014-07-1233==================
1806 unmodified lines
modified:package.json+1 added-1 removed