Skip to content
Myr

Merge tag '3.15.3' into 4.7.x

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 · parents df413a4, 15590d7 · Browse files · 4 files+41 added−1 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+41 added−1 removed

  • tests:+25 added−0 removed
  • other:+16 added−1 removed

4 files+41 added−1 removed

added:test/fixtures/blog/index.html+1 added
modified:test/res.sendfile.js+24 added
163 unmodified lines
164 done();165 });166 })167168 it('should transfer a file', function (done) {169 var app = express();170171 app.use(function (req, res) {172 res.sendfile('test/fixtures/name.txt');173 });174175 request(app)176 .get('/')177 .expect(200, 'tobi', done);178 });179180 it('should transfer a directory index file', function (done) {181 var app = express();182183 app.use(function (req, res) {184 res.sendfile('test/fixtures/blog/');185 });186187 request(app)188 .get('/')189 .expect(200, '<b>index</b>', done);190 });191192 describe('with an absolute path', function(){193 it('should transfer the file', function(done){194 var app = express();195
126 unmodified lines
modified:History.md+15 added
1unreleased2==========34 * fix `res.sendfile` regression for serving directory index files5 * deps: send@0.7.46 - Fix incorrect 403 on Windows and Node.js 0.117 - Fix serving index files without root dir8 * deps: serve-static@~1.4.49 - deps: send@0.7.410114.7.3 / 2014-08-04
333 unmodified lines
345 - `app.router()` - returns the app Router instance346 - `app.route()` - Proxy to the app's `Router#route()` method to create a new route347 - Router & Route - public API3483493.15.3 / 2014-08-04350===================351352 * fix `res.sendfile` regression for serving directory index files353 * deps: connect@2.24.3354 - deps: serve-index@~1.1.5355 - deps: serve-static@~1.4.4356 * deps: send@0.7.4357 - Fix incorrect 403 on Windows and Node.js 0.11358 - Fix serving index files without root dir3593603.15.2 / 2014-07-27361===================362363 * deps: connect@2.24.2
1591 unmodified lines
modified:package.json+1 added-1 removed