Skip to content
Myr

tests: add encoding tests for res.sendfile

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 b886eb5 · Browse files · 2 files+13 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

2 files+13 added−0 removed

  • tests:+13 added−0 removed

2 files+13 added−0 removed

added:test/fixtures/% of dogs.txt+1 added
120%
modified:test/res.sendfile.js+12 added
187 unmodified lines
188 .get('/')189 .expect(200, '<b>index</b>', done);190 });191192 it('should transfer a file with urlencoded name', function (done) {193 var app = express();194195 app.use(function (req, res) {196 res.sendfile('test/fixtures/%25%20of%20dogs.txt');197 });198199 request(app)200 .get('/')201 .expect(200, '20%', done);202 });203204 describe('with an absolute path', function(){205 it('should transfer the file', function(done){206 var app = express();207
126 unmodified lines