Skip to content
Myr

deps: send@0.16.0

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

closes #3431 closes #3435

authored by Daniel Tschinder · committed by Douglas Christopher Wilson · parent ddeb713 · Browse files · 4 files+25 added−2 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+25 added−2 removed

  • tests:+16 added−1 removed
  • other:+9 added−1 removed

4 files+25 added−2 removed

modified:test/res.sendFile.js+14 added
178 unmodified lines
179 .expect(404, done);180 });181 });182183 describe('with "immutable" option', function () {184 it('should add immutable cache-control directive', function (done) {185 var app = createApp(path.resolve(__dirname, 'fixtures/name.txt'), {186 immutable: true,187 maxAge: '4h'188 })189190 request(app)191 .get('/')192 .expect('Cache-Control', 'public, max-age=14400, immutable')193 .expect(200, done)194 })195 })196197 describe('with "maxAge" option', function () {198 it('should set cache-control max-age from number', function (done) {199 var app = createApp(path.resolve(__dirname, 'fixtures/name.txt'), {200 maxAge: 14400000
589 unmodified lines
modified:test/res.type.js+2 added-1 removed
modified:History.md+8 added
23 unmodified lines
24 - deps: ipaddr.js@1.5.225 - perf: reduce overhead when no `X-Forwarded-For` header26 * deps: qs@6.5.127 - Fix parsing & compacting very deep objects28 * deps: send@0.16.029 - Add 70 new types for file extensions30 - Add `immutable` option31 - Fix missing `</html>` in default error & redirects32 - Set charset as "UTF-8" for .js and .json33 - Use instance methods on steam to check for listeners34 - deps: mime@1.4.135 - perf: improve path validation speed36 * deps: setprototypeof@1.1.037 * deps: utils-merge@1.0.138 * deps: vary@~1.1.239 - perf: improve header token parsing speed
3314 unmodified lines
modified:package.json+1 added-1 removed