Skip to content
Myr

Added res.contentType() tests

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 35af1ba · Browse files · 3 files+16 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

3 files+16 added−1 removed

  • tests:+14 added−0 removed
  • other:+2 added−1 removed

3 files+16 added−1 removed

modified:lib/express/response.js+1 added-1 removed
modified:lib/express/server.js+1 added
26 unmodified lines
27 connect.Server.call(this, middleware || []);2829 // Expose app to extensions30 this.use('/', function(req, res, next){31 res.headers = {};32 req.app = res.app = self;33 req.res = res;34 res.req = req;35 next();
113 unmodified lines
modified:test/response.test.js+14 added