Skip to content
Myr

Added Content-Length assertion for res.sendfile()

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

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 95bfda1 · Browse files · 1 file+1 added−0 removed
This commit

State

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

Diff stats

1 file+1 added−0 removed

  • tests:+1 added−0 removed

1 file+1 added−0 removed

modified:test/response.test.js+1 added
237 unmodified lines
238 assert.response(app,239 { url: '/json' },240 { body: '{"name":"tj"}', status: 200, headers: {241 'Content-Type': 'application/json',242 'Content-Length': '13',243 'Content-Disposition': 'attachment; filename="account.json"'244 }});245 246 assert.response(app,
52 unmodified lines